Fix specs to handle non-deterministic ordering

This commit is contained in:
Rob Harrington
2018-02-05 14:03:22 +11:00
parent c59b172348
commit 09b800672d

View File

@@ -24,7 +24,7 @@ module OpenFoodNetwork
let!(:payment2) { create(:payment, order: order) }
context "where more than one payment is in the 'checkout' state" do
it { expect(updater.send(:payment)).to eq payment1 }
it { expect([payment1, payment2]).to include updater.send(:payment) }
end
context "where only one payment is in the 'checkout' state" do