Skip to content

Commit

Permalink
Try to name specs helpfully
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew McGarvey committed Sep 5, 2020
1 parent a485e43 commit c910b2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/query_associations_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ describe "Query associations" do
staff.to_sql[0].should contain "named_spaced_staffs"
end

it "can query with potentially unnecessary joins" do
it "handles potential joins over the table queried" do
item = LineItemBox.create
product = ProductBox.create
line_item_product = LineItemProductBox.create &.line_item_id(item.id).product_id(product.id)
Expand All @@ -162,7 +162,7 @@ describe "Query associations" do
result.should eq(line_item_product)
end

it "can query with potentially unnecessary joins again" do
it "handles duplicate joins" do
item = LineItemBox.create
product = ProductBox.create
line_item_product = LineItemProductBox.create &.line_item_id(item.id).product_id(product.id)
Expand Down

0 comments on commit c910b2a

Please sign in to comment.