aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorAman Gupta <aman@tmm1.net>2015-01-02 20:13:14 -0800
committerAman Gupta <aman@tmm1.net>2015-01-02 20:13:14 -0800
commitafb4fb9ff7dfd205876313fa6b3e637e6040545f (patch)
tree9e4aebeaef7e92cc7b3fc458b0fda80f37224d40 /actionpack
parent8945a12d17a5090010702a235103333d3abe69c9 (diff)
downloadrails-afb4fb9ff7dfd205876313fa6b3e637e6040545f.tar.gz
rails-afb4fb9ff7dfd205876313fa6b3e637e6040545f.tar.bz2
rails-afb4fb9ff7dfd205876313fa6b3e637e6040545f.zip
restore I18n.locale after test
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