Merge pull request #2075 from wairbut-m2c/iagirre-poll-stats

Iagirre poll stats
This commit is contained in:
Alberto García
2017-10-18 17:25:02 +02:00
committed by GitHub
12 changed files with 453 additions and 124 deletions

View File

@@ -367,4 +367,17 @@ feature 'Polls' do
end
end
context "Results and stats" do
scenario "See polls statistics", :js do
user = create(:user)
poll = create(:poll, summary: "Summary", description: "Description")
login_as user
visit poll_path(poll)
click_link "Participation statistics"
expect(page).to have_content("Total participation")
end
end
end