test_validates_acceptance_of_as_database_column fixed
[#3826 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
This commit is contained in:
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
|
||||
|
Loading…
Reference in New Issue
Block a user