Merge pull request #2973 from coopdevs/deliver-email-in-spec

[Spree Upgrade] Perform mail delivery in spec to make it pass
This commit is contained in:
Pau Pérez Fabregat
2018-11-05 18:58:37 +01:00
committed by GitHub

View File

@@ -182,7 +182,9 @@ describe Spree::Admin::OrdersController, type: :controller do
before { distributor.update_attribute(:abn, "123") }
before do
Spree::Config[:mails_from] = "spree@example.com"
ActionMailer::Base.perform_deliveries = true
end
it "should allow me to send order invoices" do
expect do
spree_get :invoice, params