fixes failing specs

This commit is contained in:
kikito
2015-08-28 19:19:18 +02:00
parent c989607b50
commit b872d9a46d
4 changed files with 9 additions and 11 deletions

View File

@@ -4,7 +4,7 @@ feature 'Moderate Comments' do
feature 'Hiding Comments' do
scenario 'Hide', :js do
scenario 'Hide without children hides the comment completely', :js do
citizen = create(:user)
moderator = create(:moderator)
@@ -23,7 +23,7 @@ feature 'Moderate Comments' do
visit debate_path(debate)
expect(page).to have_css('.comment', count: 1)
expect(page).to have_content('This comment has been deleted')
expect(page).to_not have_content('This comment has been deleted')
expect(page).to_not have_content('SPAM')
end