diff --git a/app/views/dashboard/polls/_poll.html.erb b/app/views/dashboard/polls/_poll.html.erb index c3b4f1996..8875f4247 100644 --- a/app/views/dashboard/polls/_poll.html.erb +++ b/app/views/dashboard/polls/_poll.html.erb @@ -19,7 +19,8 @@ edit_proposal_dashboard_poll_path(proposal, poll), class: "button hollow" %> <% else %> <%= link_to t("dashboard.polls.poll.view_results"), - results_poll_path(poll), class: "button", target: "_blank" %> + proposal_poll_results_path(proposal, poll), + class: "button", target: "_blank" %> <% end %> diff --git a/spec/features/dashboard/polls_spec.rb b/spec/features/dashboard/polls_spec.rb index 8df1e879f..beeb6f83d 100644 --- a/spec/features/dashboard/polls_spec.rb +++ b/spec/features/dashboard/polls_spec.rb @@ -207,6 +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)) end end end