From ad4be3d75d46a04eb7a1d5a60bdfe68356a43e8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Fri, 21 May 2010 16:20:56 +0200 Subject: Fix failing test. --- activerecord/test/models/reply.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'activerecord/test/models/reply.rb') diff --git a/activerecord/test/models/reply.rb b/activerecord/test/models/reply.rb index 6cc9ee038a..110d540120 100644 --- a/activerecord/test/models/reply.rb +++ b/activerecord/test/models/reply.rb @@ -17,7 +17,7 @@ class WrongReply < Reply validate :check_empty_title validate :check_content_mismatch, :on => :create validate :check_wrong_update, :on => :update - validate :check_title_is_secret, :on => :special_case + validate :check_author_name_is_secret, :on => :special_case def check_empty_title errors[:title] << "Empty" unless attribute_present?("title") @@ -41,8 +41,8 @@ class WrongReply < Reply errors[:title] << "is Wrong Update" if attribute_present?("title") && title == "Wrong Update" end - def check_title_is_secret - errors[:title] << "Invalid" unless title == "secret" + def check_author_name_is_secret + errors[:author_name] << "Invalid" unless author_name == "secret" end end -- cgit v1.2.3