aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/test/cases/translation_test.rb
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2014-03-09 21:03:13 +0100
committerYves Senn <yves.senn@gmail.com>2014-03-09 21:03:13 +0100
commit29bd586fed5753f5842eadf105042c27734c50ca (patch)
tree4374d4be71e9af91fce3b9aa25e44fecc6e1b14c /activemodel/test/cases/translation_test.rb
parentec23277124b2f602bed1772926e687556de15176 (diff)
parent9ffeb36265928e0fb6de7ffc4b4f3cb3e7fa3581 (diff)
downloadrails-29bd586fed5753f5842eadf105042c27734c50ca.tar.gz
rails-29bd586fed5753f5842eadf105042c27734c50ca.tar.bz2
rails-29bd586fed5753f5842eadf105042c27734c50ca.zip
Merge pull request #14315 from zuhao/activemodel_tests_in_random_order
Run ActiveModel test suites in random order.
Diffstat (limited to 'activemodel/test/cases/translation_test.rb')
-rw-r--r--activemodel/test/cases/translation_test.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/activemodel/test/cases/translation_test.rb b/activemodel/test/cases/translation_test.rb
index deb4e1ed0a..cedc812ec7 100644
--- a/activemodel/test/cases/translation_test.rb
+++ b/activemodel/test/cases/translation_test.rb
@@ -7,6 +7,10 @@ class ActiveModelI18nTests < ActiveModel::TestCase
I18n.backend = I18n::Backend::Simple.new
end
+ def teardown
+ I18n.backend.reload!
+ end
+
def test_translated_model_attributes
I18n.backend.store_translations 'en', activemodel: { attributes: { person: { name: 'person name attribute' } } }
assert_equal 'person name attribute', Person.human_attribute_name('name')