Adds message on polls index if there are no open polls

This commit is contained in:
decabeza
2018-04-03 19:17:17 +02:00
parent 32711e0341
commit 3f7395fa19
4 changed files with 26 additions and 15 deletions

View File

@@ -9,6 +9,9 @@ feature 'Polls' do
context '#index' do
scenario 'Polls can be listed' do
visit polls_path
expect(page).to have_content('There are no open votings')
polls = create_list(:poll, 3)
create(:image, imageable: polls[0])
create(:image, imageable: polls[1])