Refactor proposal poll routes

Moving routes from custom file to the proposal's routes file.
This commit is contained in:
voodoorai2000
2019-04-23 13:20:59 +02:00
committed by decabeza
parent 34834889d8
commit 6f3b213612
3 changed files with 8 additions and 2 deletions

View File

@@ -207,7 +207,7 @@ feature "Polls" do
expect(page).to have_content(I18n.l(poll.ends_at.to_date))
expect(page).to have_link(poll.title)
expect(page).to have_link(poll.title, href: proposal_poll_path(proposal, poll))
expect(page).to have_link("View results", href: proposal_poll_results_path(proposal, poll))
expect(page).to have_link("View results", href: results_proposal_poll_path(proposal, poll))
end
end
end