diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2010-02-01 01:18:55 -0200 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2010-02-05 16:08:08 -0800 |
commit | 44c46558a4a710805e0ebadfb008da0d1a39b90b (patch) | |
tree | 24e9ccf479632906df891fcd5746f178657f014c /activerecord/test | |
parent | e115eb097e3e5704b9861b6f2b92cc25d23de07c (diff) | |
download | rails-44c46558a4a710805e0ebadfb008da0d1a39b90b.tar.gz rails-44c46558a4a710805e0ebadfb008da0d1a39b90b.tar.bz2 rails-44c46558a4a710805e0ebadfb008da0d1a39b90b.zip |
test_validates_acceptance_of_as_database_column fixed
[#3826 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/validations_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/test/cases/validations_test.rb b/activerecord/test/cases/validations_test.rb index 5aac0229cd..937e08ac68 100644 --- a/activerecord/test/cases/validations_test.rb +++ b/activerecord/test/cases/validations_test.rb @@ -157,9 +157,9 @@ class ValidationsTest < ActiveRecord::TestCase end def test_validates_acceptance_of_as_database_column - Topic.validates_acceptance_of(:author_name) - topic = Topic.create("author_name" => "Dan Brown") - assert_equal "Dan Brown", topic["author_name"] + Topic.validates_acceptance_of(:approved) + topic = Topic.create("approved" => true) + assert topic["approved"] end def test_validate_is_deprecated_on_create |