From 93a4dab8852807a19ad5bf60895565c815fe1219 Mon Sep 17 00:00:00 2001 From: Santiago Pastorino Date: Mon, 1 Feb 2010 01:18:55 -0200 Subject: [PATCH] test_validates_acceptance_of_as_database_column fixed --- 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 5aac022..937e08a 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 -- 1.6.5