test_validates_acceptance_of_as_database_column fixed

[#3826 state:committed]

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
This commit is contained in:
Santiago Pastorino 2010-02-01 01:18:55 -02:00 committed by Jeremy Kemper
parent e115eb097e
commit 44c46558a4

@ -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