From 89114655fd9b20befb09d1b39b4b96e8c61afb10 Mon Sep 17 00:00:00 2001 From: luisramos0 Date: Fri, 21 Sep 2018 22:12:37 +0100 Subject: [PATCH] Fixed shipping_method update in features/consumer/shopping/orders_spec, order.shipment is now updated instead of order.shipping_method_id --- spec/features/consumer/shopping/orders_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/features/consumer/shopping/orders_spec.rb b/spec/features/consumer/shopping/orders_spec.rb index 24ec737cd7..e8a6da1d8b 100644 --- a/spec/features/consumer/shopping/orders_spec.rb +++ b/spec/features/consumer/shopping/orders_spec.rb @@ -16,7 +16,7 @@ feature "Order Management", js: true do before do shipping_method.calculator.update_attributes(preferred_amount: 5.0) - order.update_attributes(shipping_method_id: shipping_method.id) + order.shipments = [create(:shipment_with, :shipping_method, shipping_method: shipping_method)] order.reload.save quick_login_as user end