adds comments labels per comment

fixes #265
This commit is contained in:
Juanjo Bazán
2015-08-28 14:15:56 +02:00
committed by Juanjo Bazán
parent 4244ff4b04
commit fc8687a707
4 changed files with 19 additions and 18 deletions

View File

@@ -30,7 +30,7 @@ module CommonActions
login_as(user2)
visit debate_path(debate)
fill_in 'comment_body', with: 'Have you thought about...?'
fill_in "comment-body-debate_#{debate.id}", with: 'Have you thought about...?'
click_button 'Publish comment'
expect(page).to have_content 'Have you thought about...?'
end
@@ -45,7 +45,7 @@ module CommonActions
click_link "Reply"
within "#js-comment-form-comment_#{comment.id}" do
fill_in 'comment_body', with: 'It will be done next week.'
fill_in "comment-body-comment_#{comment.id}", with: 'It will be done next week.'
click_button 'Publish reply'
end
expect(page).to have_content 'It will be done next week.'