diff options
author | Yves Senn <yves.senn@gmail.com> | 2014-03-15 11:59:25 +0100 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2014-03-15 11:59:25 +0100 |
commit | 6869884b4606b362d995173fcdac68201bc5601c (patch) | |
tree | b5d7248398109721a1b788e2f5a8bff1a036f8af /activerecord/test/cases/validations | |
parent | bae7f1dae90c37b0e02482a1d99f4aeec5d49e24 (diff) | |
parent | 3baace687cfbf4c98367fda31e0a4b0f85ce813f (diff) | |
download | rails-6869884b4606b362d995173fcdac68201bc5601c.tar.gz rails-6869884b4606b362d995173fcdac68201bc5601c.tar.bz2 rails-6869884b4606b362d995173fcdac68201bc5601c.zip |
Merge pull request #14380 from tgxworld/use_teardown_helper_method_in_activerecord
Use teardown helper method.
Diffstat (limited to 'activerecord/test/cases/validations')
-rw-r--r-- | activerecord/test/cases/validations/i18n_validation_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/validations/i18n_validation_test.rb b/activerecord/test/cases/validations/i18n_validation_test.rb index efa0c9b934..3db742c15b 100644 --- a/activerecord/test/cases/validations/i18n_validation_test.rb +++ b/activerecord/test/cases/validations/i18n_validation_test.rb @@ -14,7 +14,7 @@ class I18nValidationTest < ActiveRecord::TestCase I18n.backend.store_translations('en', :errors => {:messages => {:custom => nil}}) end - def teardown + teardown do I18n.load_path.replace @old_load_path I18n.backend = @old_backend end |