From d3f498f5b1fe916c6ef32268aedc703ad877058a Mon Sep 17 00:00:00 2001 From: Luis Ramos Date: Fri, 6 Mar 2020 16:37:27 +0000 Subject: [PATCH] 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 --- spec/services/order_syncer_spec.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/services/order_syncer_spec.rb b/spec/services/order_syncer_spec.rb index 49622dfc68..87f5a8efd3 100644 --- a/spec/services/order_syncer_spec.rb +++ b/spec/services/order_syncer_spec.rb @@ -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