aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer/test/i18n_with_controller_test.rb
diff options
context:
space:
mode:
authorDmitry Polushkin <dmitry.polushkin@gmail.com>2014-02-10 13:24:27 +0000
committerDmitry Polushkin <dmitry.polushkin@gmail.com>2014-07-04 15:55:33 +0100
commit99f8d4feeb7b99c153d4001f50478ad75ab2b766 (patch)
tree7a6a2c6920c66a152a4c0e20a45118e968ebb303 /actionmailer/test/i18n_with_controller_test.rb
parenta8e1538b6032be16c499a7049c2eaa1eeb2265ac (diff)
downloadrails-99f8d4feeb7b99c153d4001f50478ad75ab2b766.tar.gz
rails-99f8d4feeb7b99c153d4001f50478ad75ab2b766.tar.bz2
rails-99f8d4feeb7b99c153d4001f50478ad75ab2b766.zip
add test coverage for the action mailer
Diffstat (limited to 'actionmailer/test/i18n_with_controller_test.rb')
-rw-r--r--actionmailer/test/i18n_with_controller_test.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/actionmailer/test/i18n_with_controller_test.rb b/actionmailer/test/i18n_with_controller_test.rb
index d9d588a950..2863d60a16 100644
--- a/actionmailer/test/i18n_with_controller_test.rb
+++ b/actionmailer/test/i18n_with_controller_test.rb
@@ -37,6 +37,7 @@ class ActionMailerI18nWithControllerTest < ActionDispatch::IntegrationTest
end
def test_send_mail
+ Mail::SMTP.any_instance.expects(:deliver!)
with_translation 'de', email_subject: '[Anmeldung] Willkommen' do
get '/test/send_mail'
assert_equal "Mail sent - Subject: [Anmeldung] Willkommen", @response.body