Commit 5d0a0e6678785dc7c8bf44ec841277e862183c81
1 parent
ec307e39
Exists in
master
and in
29 other branches
Fixing test: content_viewer
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
test/functional/content_viewer_controller_test.rb
@@ -1281,7 +1281,7 @@ end | @@ -1281,7 +1281,7 @@ end | ||
1281 | comment = article.comments.build(:author => profile, :title => 'hi', :body => 'hello') | 1281 | comment = article.comments.build(:author => profile, :title => 'hi', :body => 'hello') |
1282 | comment.save! | 1282 | comment.save! |
1283 | get :view_page, :profile => 'testuser', :page => [ 'test' ] | 1283 | get :view_page, :profile => 'testuser', :page => [ 'test' ] |
1284 | - assert_no_tag :tag => 'p', :attributes => { :class => 'post-comment-button' } | 1284 | + assert_no_tag :tag => 'a', :attributes => { :class => 'display-comment-form' } |
1285 | end | 1285 | end |
1286 | 1286 | ||
1287 | should 'not show a post comment button on top if there are no comments' do | 1287 | should 'not show a post comment button on top if there are no comments' do |
@@ -1289,7 +1289,7 @@ end | @@ -1289,7 +1289,7 @@ end | ||
1289 | article = profile.articles.build(:name => 'test') | 1289 | article = profile.articles.build(:name => 'test') |
1290 | article.save! | 1290 | article.save! |
1291 | get :view_page, :profile => 'testuser', :page => [ 'test' ] | 1291 | get :view_page, :profile => 'testuser', :page => [ 'test' ] |
1292 | - assert_no_tag :tag => 'p', :attributes => { :class => 'post-comment-button' } | 1292 | + assert_no_tag :tag => 'a', :attributes => { :class => 'display-comment-form' } |
1293 | end | 1293 | end |
1294 | 1294 | ||
1295 | should 'show a post comment button on top if there are at least two comments' do | 1295 | should 'show a post comment button on top if there are at least two comments' do |
@@ -1301,7 +1301,7 @@ end | @@ -1301,7 +1301,7 @@ end | ||
1301 | comment2 = article.comments.build(:author => profile, :title => 'hi', :body => 'hello', :reply_of_id => comment1.id) | 1301 | comment2 = article.comments.build(:author => profile, :title => 'hi', :body => 'hello', :reply_of_id => comment1.id) |
1302 | comment2.save! | 1302 | comment2.save! |
1303 | get :view_page, :profile => 'testuser', :page => [ 'test' ] | 1303 | get :view_page, :profile => 'testuser', :page => [ 'test' ] |
1304 | - assert_tag :tag => 'p', :attributes => { :class => 'post-comment-button' } | 1304 | + assert_tag :tag => 'a', :attributes => { :class => 'display-comment-form' } |
1305 | end | 1305 | end |
1306 | 1306 | ||
1307 | should 'store number of comments' do | 1307 | should 'store number of comments' do |