diff options
author | wycats <wycats@gmail.com> | 2010-06-10 12:19:17 -0400 |
---|---|---|
committer | wycats <wycats@gmail.com> | 2010-06-12 18:47:37 -0700 |
commit | d67549306567b219089f2355fe432d31d0ebf8a1 (patch) | |
tree | 9d60866fa9b192cabeb2fb3c43509f60500e62b7 | |
parent | f28d5cfbe63e7fb0f62b6660581a4261fa6f8051 (diff) | |
download | rails-d67549306567b219089f2355fe432d31d0ebf8a1.tar.gz rails-d67549306567b219089f2355fe432d31d0ebf8a1.tar.bz2 rails-d67549306567b219089f2355fe432d31d0ebf8a1.zip |
Revert "Validators should at model level and not at AR:Base level [Closes #4804]"
This reverts commit e11bb95d56ed77b10d54d9dfe5a3cc4aa48b3a61.
-rw-r--r-- | activerecord/test/cases/validations_test.rb | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/activerecord/test/cases/validations_test.rb b/activerecord/test/cases/validations_test.rb index 3f1b0e333f..9527404f03 100644 --- a/activerecord/test/cases/validations_test.rb +++ b/activerecord/test/cases/validations_test.rb @@ -9,8 +9,6 @@ require 'models/guid' require 'models/owner' require 'models/pet' require 'models/event' -require 'models/parrot' -require 'models/company' class ProtectedPerson < ActiveRecord::Base set_table_name 'people' @@ -191,12 +189,4 @@ class ValidationsTest < ActiveRecord::TestCase end assert_equal ["always invalid", "invalid on update"], p.errors[:name] end - - def test_validators - assert_equal 1, Parrot.validators.size - assert_equal 1, Company.validators.size - assert_equal 1, Parrot.validators_on(:name).size - assert_equal 1, Company.validators_on(:name).size - end - end |