From 80a2fa90bd2cc55ec45ab5747e89208bf6eca8ac Mon Sep 17 00:00:00 2001 From: MoisesMachado Date: Mon, 24 Mar 2008 14:22:05 +0000 Subject: [PATCH] ActionItem243: fixed the test for find_by_contents of title of comments --- test/unit/comment_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit/comment_test.rb b/test/unit/comment_test.rb index 180027d..15d1b6d 100644 --- a/test/unit/comment_test.rb +++ b/test/unit/comment_test.rb @@ -96,9 +96,9 @@ class CommentTest < Test::Unit::TestCase should 'be searched by contents of title' do owner = create_user('testuser').person art = owner.articles.build(:name => 'ytest'); art.save! - c1 = art.comments.build(:title => 'test comment', :body => 'anything', :author => owner); c1.save! + c1 = art.comments.build(:title => 'a nice comment', :body => 'anything', :author => owner); c1.save! - assert_includes Comment.find_by_contents('test'), c1 + assert_includes Comment.find_by_contents('nice'), c1 end should 'be searched by contents of body' do -- libgit2 0.21.2