aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/test/controller/localized_templates_test.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/actionpack/test/controller/localized_templates_test.rb b/actionpack/test/controller/localized_templates_test.rb
index a5fc3f614a..da0c21ed3f 100644
--- a/actionpack/test/controller/localized_templates_test.rb
+++ b/actionpack/test/controller/localized_templates_test.rb
@@ -8,6 +8,14 @@ end
class LocalizedTemplatesTest < ActionController::TestCase
tests LocalizedController
+ def setup
+ @i18n_locale = I18n.locale
+ end
+
+ def teardown
+ I18n.locale = @i18n_locale
+ end
+
def test_localized_template_is_used
I18n.locale = :de
get :hello_world