diff options
author | Kuldeep Aggarwal <kd.engineer@yahoo.co.in> | 2014-01-28 00:13:35 +0530 |
---|---|---|
committer | Kuldeep Aggarwal <kd.engineer@yahoo.co.in> | 2014-01-28 00:13:35 +0530 |
commit | 20317f3d4df3ef0e876b5b213551f0d7d81d0c19 (patch) | |
tree | 29cde4a968792d8e4bd4f150270a3aa8b41f2cca /activemodel/test | |
parent | d57ce232a885b21e1d6d1f9fbf60bc5908ad880d (diff) | |
download | rails-20317f3d4df3ef0e876b5b213551f0d7d81d0c19.tar.gz rails-20317f3d4df3ef0e876b5b213551f0d7d81d0c19.tar.bz2 rails-20317f3d4df3ef0e876b5b213551f0d7d81d0c19.zip |
use the new clear_validators! api everywhere to reset validators in tests
Diffstat (limited to 'activemodel/test')
-rw-r--r-- | activemodel/test/cases/validations/acceptance_validation_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/test/cases/validations/acceptance_validation_test.rb b/activemodel/test/cases/validations/acceptance_validation_test.rb index d9d8c6b0f8..e78aa1adaf 100644 --- a/activemodel/test/cases/validations/acceptance_validation_test.rb +++ b/activemodel/test/cases/validations/acceptance_validation_test.rb @@ -63,6 +63,6 @@ class AcceptanceValidationTest < ActiveModel::TestCase p.karma = "1" assert p.valid? ensure - Person.reset_callbacks(:validate) + Person.clear_validators! end end |