From 0e2c1d03179ca5923ca70110ee9c540e9bd89b64 Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Mon, 15 Feb 2021 10:51:26 +0000 Subject: [PATCH] Refresh shipment rates when changing shipping method cost The test setup here wasn't correctly updating he shipment's shipping_rates, so they were still zero. --- spec/features/consumer/shopping/orders_spec.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/features/consumer/shopping/orders_spec.rb b/spec/features/consumer/shopping/orders_spec.rb index 676914b57c..d13b57ac68 100644 --- a/spec/features/consumer/shopping/orders_spec.rb +++ b/spec/features/consumer/shopping/orders_spec.rb @@ -108,6 +108,7 @@ feature "Order Management", js: true do before do order.shipment.shipping_method.calculator.update(preferred_amount: 5.0) + order.refresh_shipment_rates order.save order.reload