adds more precise verification to specs

This commit is contained in:
Juanjo Bazán
2015-08-29 11:30:11 +02:00
parent b6920cc3af
commit 7fdc8e6615
2 changed files with 7 additions and 4 deletions

View File

@@ -22,15 +22,18 @@ feature 'Admin moderators' do
expect(page).to have_content @user.name
click_link 'Add'
expect(page).to have_content @user.name
within("#moderators") do
expect(page).to have_content @user.name
end
end
scenario 'Delete Moderator' do
visit admin_moderators_path
click_link 'Delete'
expect(page).to_not have_content @moderator.name
within("#moderators") do
expect(page).to_not have_content @moderator.name
end
end
end