Make sure test data is available before the test

This commit is contained in:
Luis Ramos
2020-04-01 09:58:19 +01:00
parent 80b9800b36
commit 154e223a12

View File

@@ -28,6 +28,7 @@ module Spree
let(:oc_order) { create :order_with_totals_and_distribution }
it "finds line items for products supplied by one of a number of enterprises" do
li1; li2
expect(LineItem.supplied_by_any([s1])).to eq([li1])
expect(LineItem.supplied_by_any([s2])).to eq([li2])
expect(LineItem.supplied_by_any([s1, s2])).to match_array [li1, li2]