Skip to content

Commit

Permalink
Fix spec
Browse files Browse the repository at this point in the history
  • Loading branch information
dorner committed Mar 17, 2024
1 parent b9ba5ba commit c81dbac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/models/organization_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@

describe "total_inventory" do
it "returns a sum total of all inventory at all storage locations" do
item = create(:item)
item = create(:item, organization: organization)
create(:storage_location, :with_items, item: item, item_quantity: 100, organization: organization)
create(:storage_location, :with_items, item: item, item_quantity: 150, organization: organization)
expect(organization.total_inventory).to eq(250)
Expand Down

0 comments on commit c81dbac

Please sign in to comment.