aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/i18n_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/cases/i18n_test.rb')
-rw-r--r--activerecord/test/cases/i18n_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/test/cases/i18n_test.rb b/activerecord/test/cases/i18n_test.rb
index 3527644f0d..06036733f5 100644
--- a/activerecord/test/cases/i18n_test.rb
+++ b/activerecord/test/cases/i18n_test.rb
@@ -39,8 +39,8 @@ class ActiveRecordI18nTests < Test::Unit::TestCase
end
private
- def reset_translations
- I18n.backend.send(:class_variable_set, :@@translations, {})
- end
+ def reset_translations
+ I18n.backend = I18n::Backend::Simple.new
+ end
end