Remove duplicate declaration of test mail delivery

Our test environment sets the mail delivery method already. We don't
have to do it in individual spec files.
This commit is contained in:
Maikel Linke
2023-04-20 13:28:59 +10:00
parent 915bd19d7b
commit 04d33adaf2
3 changed files with 0 additions and 6 deletions

View File

@@ -15,10 +15,6 @@ describe Spree::OrderMailer do
end
context "#deliver" do
before do
ActionMailer::Base.delivery_method = :test
end
after { ActionMailer::Base.deliveries.clear }
it "should use the from address specified in the preference" do

View File

@@ -158,7 +158,6 @@ describe Spree::OrderMailer do
end
before do
ActionMailer::Base.delivery_method = :test
ActionMailer::Base.deliveries = []
end

View File

@@ -10,7 +10,6 @@ describe Spree::UserMailer do
end
before do
ActionMailer::Base.delivery_method = :test
ActionMailer::Base.deliveries = []
end