Change various Mailer invocations from #deliver_now to #deliver_later

This commit is contained in:
Matt-Yorkley
2021-01-08 17:56:06 +00:00
parent 3e6445c51c
commit ff962c1c9b
12 changed files with 29 additions and 26 deletions

View File

@@ -78,7 +78,7 @@ describe Admin::ProxyOrdersController, type: :controller do
before do
# Processing order to completion
allow(Spree::OrderMailer).to receive(:cancel_email) { double(:email, deliver_now: true) }
allow(Spree::OrderMailer).to receive(:cancel_email) { double(:email, deliver_later: true) }
OrderWorkflow.new(order).complete!
proxy_order.reload
proxy_order.cancel