mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Sort each array to ensure the order
and then expect the right values.
This commit is contained in:
@@ -288,8 +288,10 @@ describe OrderCycleForm do
|
||||
distributor.users.first
|
||||
)
|
||||
|
||||
expect{ form.save }.to change{ order_cycle.distributor_payment_methods.pluck(:id) }
|
||||
.from([distributor_payment_method, distributor_payment_method2])
|
||||
expect{ form.save }.to change{
|
||||
order_cycle.distributor_payment_methods.pluck(:id).sort
|
||||
}
|
||||
.from([distributor_payment_method, distributor_payment_method2].sort)
|
||||
.to([distributor_payment_method])
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user