fixes spec

This commit is contained in:
Juanjo Bazán
2016-12-07 19:27:44 +01:00
parent bdf16395d3
commit ca98206ca3

View File

@@ -37,17 +37,17 @@ feature 'Polls' do
scenario "Current filter is properly highlighted" do
visit polls_path
expect(page).to_not have_link('Current')
expect(page).to_not have_link('Open')
expect(page).to have_link('Incoming')
expect(page).to have_link('Expired')
visit polls_path(filter: 'incoming')
expect(page).to have_link('Current')
expect(page).to have_link('Open')
expect(page).to_not have_link('Incoming')
expect(page).to have_link('Expired')
visit polls_path(filter: 'expired')
expect(page).to have_link('Current')
expect(page).to have_link('Open')
expect(page).to have_link('Incoming')
expect(page).to_not have_link('Expired')
end