Match array without order in ocm spec

That spec was randomly failing.
This commit is contained in:
Maikel Linke
2016-04-13 16:59:54 +10:00
parent 0ac87b9e55
commit a2c58c7ca1

View File

@@ -102,7 +102,7 @@ module OpenFoodNetwork
order3 = create(:order, shipping_method: sm3)
subject.stub(:params).and_return(shipping_method_in: [sm1.id, sm3.id])
subject.filter(orders).should == [order1, order3]
expect(subject.filter(orders)).to match_array [order1, order3]
end
it "should do all the filters at once" do