From 5d0a0e6678785dc7c8bf44ec841277e862183c81 Mon Sep 17 00:00:00 2001 From: Rodrigo Souto Date: Wed, 27 Mar 2013 15:22:24 +0000 Subject: [PATCH] Fixing test: content_viewer --- test/functional/content_viewer_controller_test.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/functional/content_viewer_controller_test.rb b/test/functional/content_viewer_controller_test.rb index 2f66529..02ca2ff 100644 --- a/test/functional/content_viewer_controller_test.rb +++ b/test/functional/content_viewer_controller_test.rb @@ -1281,7 +1281,7 @@ end comment = article.comments.build(:author => profile, :title => 'hi', :body => 'hello') comment.save! get :view_page, :profile => 'testuser', :page => [ 'test' ] - assert_no_tag :tag => 'p', :attributes => { :class => 'post-comment-button' } + assert_no_tag :tag => 'a', :attributes => { :class => 'display-comment-form' } end should 'not show a post comment button on top if there are no comments' do @@ -1289,7 +1289,7 @@ end article = profile.articles.build(:name => 'test') article.save! get :view_page, :profile => 'testuser', :page => [ 'test' ] - assert_no_tag :tag => 'p', :attributes => { :class => 'post-comment-button' } + assert_no_tag :tag => 'a', :attributes => { :class => 'display-comment-form' } end should 'show a post comment button on top if there are at least two comments' do @@ -1301,7 +1301,7 @@ end comment2 = article.comments.build(:author => profile, :title => 'hi', :body => 'hello', :reply_of_id => comment1.id) comment2.save! get :view_page, :profile => 'testuser', :page => [ 'test' ] - assert_tag :tag => 'p', :attributes => { :class => 'post-comment-button' } + assert_tag :tag => 'a', :attributes => { :class => 'display-comment-form' } end should 'store number of comments' do -- libgit2 0.21.2