Permalink
Browse files

test_validates_acceptance_of_as_database_column fixed

[#3826 state:committed]

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
  • Loading branch information...
1 parent e115eb0 commit 44c46558a4a710805e0ebadfb008da0d1a39b90b @spastorino spastorino committed with jeremy Feb 1, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 activerecord/test/cases/validations_test.rb
@@ -157,9 +157,9 @@ def test_throw_away_typing
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

0 comments on commit 44c4655

Please sign in to comment.