Make silence a warning inserted by commit #4b3f8ac

This commit is contained in:
yui-knk 2015-07-30 00:42:19 +09:00
parent 90e893d447
commit 6149444685
1 changed files with 4 additions and 1 deletions

View File

@ -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