mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-05 22:26:07 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user