aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer
diff options
context:
space:
mode:
authoryui-knk <spiketeika@gmail.com>2015-07-30 00:42:19 +0900
committeryui-knk <spiketeika@gmail.com>2015-07-30 00:42:19 +0900
commit6149444685712db929cabeedc71a1255eff7fefc (patch)
tree40855cbf4ba3649f31525143037e6c78aa114bed /actionmailer
parent90e893d447e2ae2f20a54a7b8aff4c46a7b108f6 (diff)
downloadrails-6149444685712db929cabeedc71a1255eff7fefc.tar.gz
rails-6149444685712db929cabeedc71a1255eff7fefc.tar.bz2
rails-6149444685712db929cabeedc71a1255eff7fefc.zip
Make silence a warning inserted by commit #4b3f8ac
Diffstat (limited to 'actionmailer')
-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