mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
The shipping rates refresh process changed a little in spree 2.1 and the selection is and was random, it picks the first acceptable
In this case we need to specifically select one shipping method so that the test is valid
This commit is contained in:
@@ -15,6 +15,7 @@ describe OrderSyncer do
|
||||
before do
|
||||
# Create shipping rates for available shipping methods.
|
||||
order.shipments.each(&:refresh_rates)
|
||||
order.select_shipping_method(shipping_method)
|
||||
end
|
||||
|
||||
it "updates the shipping_method on the order and on shipments" do
|
||||
|
||||
Reference in New Issue
Block a user