mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Merge pull request #10530 from mkllnk/flaky-service-spec
Stabilise spec with deterministic order
This commit is contained in:
@@ -271,7 +271,7 @@ describe OrderCycleForm do
|
||||
create(:admin_user)
|
||||
)
|
||||
|
||||
expect{ form.save }.to change{ order_cycle.distributor_payment_methods.pluck(:id) }
|
||||
expect{ form.save }.to change{ order_cycle.distributor_payment_methods.pluck(:id).sort }
|
||||
.from([distributor_payment_method, distributor_payment_method2])
|
||||
.to([distributor_payment_method2])
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user