diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-09-19 13:22:09 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-09-19 13:22:09 -0500 |
commit | f5ace625fe524938be35ad7d16bc9c29fd08fb96 (patch) | |
tree | 59ab2184fc0eb36e77c90eb2f62768cb4a8daced /actionpack/test/dispatch/show_exceptions_test.rb | |
parent | f1c8f07be8c055fdcfd5b5a08b5781e21f24e428 (diff) | |
download | rails-f5ace625fe524938be35ad7d16bc9c29fd08fb96.tar.gz rails-f5ace625fe524938be35ad7d16bc9c29fd08fb96.tar.bz2 rails-f5ace625fe524938be35ad7d16bc9c29fd08fb96.zip |
Ensure changes to I18n locale get reset during tests
Diffstat (limited to 'actionpack/test/dispatch/show_exceptions_test.rb')
-rw-r--r-- | actionpack/test/dispatch/show_exceptions_test.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/actionpack/test/dispatch/show_exceptions_test.rb b/actionpack/test/dispatch/show_exceptions_test.rb index ce1973853e..d4800e4edb 100644 --- a/actionpack/test/dispatch/show_exceptions_test.rb +++ b/actionpack/test/dispatch/show_exceptions_test.rb @@ -70,8 +70,7 @@ class ShowExceptionsTest < ActionController::IntegrationTest test "localize public rescue message" do # Change locale - old_locale = I18n.locale - I18n.locale = :da + old_locale, I18n.locale = I18n.locale, :da begin @integration_session = open_session(ProductionApp) |