Browse files

Restore I18n.locale to default after test.

If i18n_with_controller_test.rb were to run first, the I18n.locale will
be changed to :de, and the following tests in base_test.rb will fail:

"subject gets default from I18n"
“default subject can have interpolations”
"translations are scoped properly"
"implicit multipart with default locale"
  • Loading branch information...
zuhao committed Jun 6, 2014
1 parent 0502189 commit 573a8421e7e5937c7afbd4b9140136e444db645a
Showing with 4 additions and 0 deletions.
  1. +4 −0 actionmailer/test/i18n_with_controller_test.rb
@@ -32,6 +32,10 @@ def app
+ 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 573a842

Please sign in to comment.