mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-05 22:26:07 +00:00
Fix specs to handle non-deterministic ordering
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user