adds search specs

This commit is contained in:
rgarcia
2015-10-29 14:25:10 +01:00
parent 246e49c561
commit 593ed551d4
4 changed files with 350 additions and 29 deletions

View File

@@ -504,10 +504,12 @@ feature 'Debates' do
within("#debates") do
expect(page).to have_css('.debate', count: 4)
expect(page).to have_content(debate2.title)
expect(page).to have_content(debate4.title)
expect(page).to have_content(debate5.title)
expect(page).to have_content(debate6.title)
expect(page).to_not have_content(debate1.title)
expect(page).to_not have_content(debate3.title)
end