diff options
author | Dmitry Polushkin <dmitry.polushkin@gmail.com> | 2014-02-10 13:24:27 +0000 |
---|---|---|
committer | Dmitry Polushkin <dmitry.polushkin@gmail.com> | 2014-07-04 15:55:33 +0100 |
commit | 99f8d4feeb7b99c153d4001f50478ad75ab2b766 (patch) | |
tree | 7a6a2c6920c66a152a4c0e20a45118e968ebb303 /actionmailer/test/i18n_with_controller_test.rb | |
parent | a8e1538b6032be16c499a7049c2eaa1eeb2265ac (diff) | |
download | rails-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.rb | 1 |
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 |