mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-09 03:20:21 +00:00
Stub or provide mailer as appropriate
This commit is contained in:
@@ -74,6 +74,7 @@ describe Admin::ProxyOrdersController, type: :controller do
|
||||
|
||||
before do
|
||||
# Processing order to completion
|
||||
allow(Spree::OrderMailer).to receive(:cancel_email) { double(:email, deliver: true) }
|
||||
order.update_attribute(:shipping_method_id, shipping_method.id)
|
||||
while !order.completed? do break unless order.next! end
|
||||
proxy_order.update_attribute(:canceled_at, Time.zone.now)
|
||||
|
||||
Reference in New Issue
Block a user