Adapt code coming from master to the new order api with update_order!

This commit is contained in:
Luis Ramos
2021-05-14 19:39:23 +01:00
committed by Andy Brett
parent a1ac4e85ed
commit f7726e552a
3 changed files with 5 additions and 17 deletions

View File

@@ -204,7 +204,7 @@ describe Api::V0::ShipmentsController, type: :controller do
before do
order.shipments.first.shipping_methods = [shipping_method1, shipping_method2]
order.select_shipping_method(shipping_method1.id)
order.update!
order.update_order!
order.update_columns(
payment_total: 60,
payment_state: "paid"