mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-28 01:53:25 +00:00
Fix checkout spec due to shipments
This commit is contained in:
@@ -223,7 +223,8 @@ describe CheckoutController, type: :controller do
|
||||
let!(:payment_failed) { create(:payment, order: order, state: 'failed') }
|
||||
|
||||
before do
|
||||
order.update_attribute(:shipping_method_id, shipment_pending.shipping_method_id)
|
||||
order.shipments << shipment_pending
|
||||
order.save
|
||||
controller.instance_variable_set(:@order, order.reload)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user