Commit 80a2fa90bd2cc55ec45ab5747e89208bf6eca8ac
1 parent
a6de20aa
Exists in
master
and in
29 other branches
ActionItem243: fixed the test for find_by_contents of title of comments
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1598 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
test/unit/comment_test.rb
... | ... | @@ -96,9 +96,9 @@ class CommentTest < Test::Unit::TestCase |
96 | 96 | should 'be searched by contents of title' do |
97 | 97 | owner = create_user('testuser').person |
98 | 98 | art = owner.articles.build(:name => 'ytest'); art.save! |
99 | - c1 = art.comments.build(:title => 'test comment', :body => 'anything', :author => owner); c1.save! | |
99 | + c1 = art.comments.build(:title => 'a nice comment', :body => 'anything', :author => owner); c1.save! | |
100 | 100 | |
101 | - assert_includes Comment.find_by_contents('test'), c1 | |
101 | + assert_includes Comment.find_by_contents('nice'), c1 | |
102 | 102 | end |
103 | 103 | |
104 | 104 | should 'be searched by contents of body' do | ... | ... |