aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--actionmailer/test/i18n_with_controller_test.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/actionmailer/test/i18n_with_controller_test.rb b/actionmailer/test/i18n_with_controller_test.rb
index 010e44d045..5ffde06a80 100644
--- a/actionmailer/test/i18n_with_controller_test.rb
+++ b/actionmailer/test/i18n_with_controller_test.rb
@@ -1,6 +1,7 @@
require 'abstract_unit'
require 'action_view'
require 'action_controller'
+require 'active_support/deprecation'
class I18nTestMailer < ActionMailer::Base
configure do |c|
@@ -54,7 +55,9 @@ class ActionMailerI18nWithControllerTest < ActionDispatch::IntegrationTest
def test_send_mail
Mail::SMTP.any_instance.expects(:deliver!)
with_translation 'de', email_subject: '[Anmeldung] Willkommen' do
- get '/test/send_mail'
+ ActiveSupport::Deprecation.silence do
+ get '/test/send_mail'
+ end
assert_equal "Mail sent - Subject: [Anmeldung] Willkommen", @response.body
end
end