Skip to content

Commit e6cfb13

Browse files
committed
Fix existing test that created purchase w/ 0 quantity items
1 parent 133f5b8 commit e6cfb13

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

spec/queries/low_inventory_query_spec.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@
3434
context "when minimum_quantity is 0 and recommended_quantity is nil and item quantity is 0" do
3535
let(:item) { create :item, organization: organization }
3636
let(:minimum_quantity) { 0 }
37-
let(:inventory_item_quantity) { 0 }
37+
38+
before do
39+
TestInventory.create_inventory(organization, { storage_location.id => { item.id => 0 } })
40+
end
3841

3942
it { is_expected.to eq [] }
4043
end

0 commit comments

Comments
 (0)