aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2010-01-07 02:37:42 +0100
committerJosé Valim <jose.valim@gmail.com>2010-01-07 15:31:50 +0100
commitb0572ab2b670f00c96226d8ba29f4f153771e086 (patch)
tree990056f4a23c5b0abf7439ec504b9f9d74ae94af /activemodel
parentc68cc49dcde6c7df4c11a1113fcd0d47220cddd3 (diff)
downloadrails-b0572ab2b670f00c96226d8ba29f4f153771e086.tar.gz
rails-b0572ab2b670f00c96226d8ba29f4f153771e086.tar.bz2
rails-b0572ab2b670f00c96226d8ba29f4f153771e086.zip
Be sure to dup load paths before clearing the array.
Diffstat (limited to 'activemodel')
-rw-r--r--activemodel/test/cases/validations/i18n_validation_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/test/cases/validations/i18n_validation_test.rb b/activemodel/test/cases/validations/i18n_validation_test.rb
index 85dabc02e7..7d33fcea98 100644
--- a/activemodel/test/cases/validations/i18n_validation_test.rb
+++ b/activemodel/test/cases/validations/i18n_validation_test.rb
@@ -9,7 +9,7 @@ class I18nValidationTest < ActiveModel::TestCase
Person.reset_callbacks(:validate)
@person = Person.new
- @old_load_path, @old_backend = I18n.load_path, I18n.backend
+ @old_load_path, @old_backend = I18n.load_path.dup, I18n.backend
I18n.load_path.clear
I18n.backend = I18n::Backend::Simple.new
I18n.backend.store_translations('en', :errors => {:messages => {:custom => nil}})