Use custom url for proposal poll results

This commit is contained in:
voodoorai2000
2019-04-23 12:54:44 +02:00
committed by decabeza
parent 93ff173a0d
commit 93972eeb33
2 changed files with 3 additions and 1 deletions

View File

@@ -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 %>
</div>

View File

@@ -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