aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/dispatch/show_exceptions_test.rb
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2009-09-19 13:22:09 -0500
committerJoshua Peek <josh@joshpeek.com>2009-09-19 13:22:09 -0500
commitf5ace625fe524938be35ad7d16bc9c29fd08fb96 (patch)
tree59ab2184fc0eb36e77c90eb2f62768cb4a8daced /actionpack/test/dispatch/show_exceptions_test.rb
parentf1c8f07be8c055fdcfd5b5a08b5781e21f24e428 (diff)
downloadrails-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.rb3
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)