Commit 5d0a0e6678785dc7c8bf44ec841277e862183c81
1 parent
ec307e39
Exists in
master
and in
28 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 | 1281 | comment = article.comments.build(:author => profile, :title => 'hi', :body => 'hello') |
| 1282 | 1282 | comment.save! |
| 1283 | 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 | 1285 | end |
| 1286 | 1286 | |
| 1287 | 1287 | should 'not show a post comment button on top if there are no comments' do |
| ... | ... | @@ -1289,7 +1289,7 @@ end |
| 1289 | 1289 | article = profile.articles.build(:name => 'test') |
| 1290 | 1290 | article.save! |
| 1291 | 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 | 1293 | end |
| 1294 | 1294 | |
| 1295 | 1295 | should 'show a post comment button on top if there are at least two comments' do |
| ... | ... | @@ -1301,7 +1301,7 @@ end |
| 1301 | 1301 | comment2 = article.comments.build(:author => profile, :title => 'hi', :body => 'hello', :reply_of_id => comment1.id) |
| 1302 | 1302 | comment2.save! |
| 1303 | 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 | 1305 | end |
| 1306 | 1306 | |
| 1307 | 1307 | should 'store number of comments' do | ... | ... |