diff options
author | Yves Senn <yves.senn@gmail.com> | 2014-03-09 21:03:13 +0100 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2014-03-09 21:03:13 +0100 |
commit | 29bd586fed5753f5842eadf105042c27734c50ca (patch) | |
tree | 4374d4be71e9af91fce3b9aa25e44fecc6e1b14c /activemodel/test/cases/translation_test.rb | |
parent | ec23277124b2f602bed1772926e687556de15176 (diff) | |
parent | 9ffeb36265928e0fb6de7ffc4b4f3cb3e7fa3581 (diff) | |
download | rails-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.rb | 4 |
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') |