Skip to content
Browse files

Merge pull request #15548 from zuhao/refactor_actionmailer_i18n_with_…

…controller_test

Restore I18n.locale to default after test.
  • Loading branch information...
2 parents 0502189 + 573a842 commit 6680ee9427ae2639e404cd3b9538f54e136057c6 @senny senny committed Jun 6, 2014
Showing with 4 additions and 0 deletions.
  1. +4 −0 actionmailer/test/i18n_with_controller_test.rb
View
4 actionmailer/test/i18n_with_controller_test.rb
@@ -32,6 +32,10 @@ def app
Routes
end
+ teardown do
+ I18n.locale = I18n.default_locale
+ end
+
def test_send_mail
with_translation 'de', email_subject: '[Anmeldung] Willkommen' do
get '/test/send_mail'

0 comments on commit 6680ee9

Please sign in to comment.
Something went wrong with that request. Please try again.