aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/test/template/render_test.rb
diff options
context:
space:
mode:
authorZuhao Wan <wanzuhao@gmail.com>2014-06-14 16:32:36 +0800
committerZuhao Wan <wanzuhao@gmail.com>2014-06-14 16:36:53 +0800
commit48d118573d3a3b7fd5ba8c4fa02dc2f282a93b0e (patch)
tree1ae0d69c6e5fe93fca2cf848d753714c8ec2758b /actionview/test/template/render_test.rb
parent0c58eb02ef8b212c49256453392d93dbbd8f9527 (diff)
downloadrails-48d118573d3a3b7fd5ba8c4fa02dc2f282a93b0e.tar.gz
rails-48d118573d3a3b7fd5ba8c4fa02dc2f282a93b0e.tar.bz2
rails-48d118573d3a3b7fd5ba8c4fa02dc2f282a93b0e.zip
Clean up I18n stored translations after test.
Diffstat (limited to 'actionview/test/template/render_test.rb')
-rw-r--r--actionview/test/template/render_test.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/actionview/test/template/render_test.rb b/actionview/test/template/render_test.rb
index 240a8e3c32..67f1aabbd2 100644
--- a/actionview/test/template/render_test.rb
+++ b/actionview/test/template/render_test.rb
@@ -12,7 +12,6 @@ module RenderTestCases
@controller_view = TestController.new.view_context
# Reload and register danish language for testing
- I18n.reload!
I18n.backend.store_translations 'da', {}
I18n.backend.store_translations 'pt-BR', {}
@@ -513,6 +512,7 @@ class CachedViewRenderTest < ActiveSupport::TestCase
def teardown
GC.start
+ I18n.reload!
end
end
@@ -530,6 +530,7 @@ class LazyViewRenderTest < ActiveSupport::TestCase
def teardown
GC.start
+ I18n.reload!
end
def test_render_utf8_template_with_magic_comment