Replace poll name link in admin polls booth assignments

This commit is contained in:
decabeza
2019-02-21 17:31:46 +01:00
parent a1c5dad4ff
commit 51d74ed7ab
2 changed files with 2 additions and 2 deletions

View File

@@ -11,7 +11,7 @@
<% @polls.each do |poll| %>
<tr id="<%= dom_id(poll) %>" class="poll">
<td>
<strong><%= link_to poll.name, admin_poll_path(poll) %></strong>
<%= link_to poll.name, manage_admin_poll_booth_assignments_path(poll) %>
</td>
<td>
<%= l poll.starts_at.to_date %> - <%= l poll.ends_at.to_date %>

View File

@@ -18,7 +18,7 @@ feature "Admin booths assignments" do
visit booth_assignments_admin_polls_path
expect(page).to have_content(poll.name)
expect(page).to have_link(poll.name, href: manage_admin_poll_booth_assignments_path(poll))
expect(page).to have_content(second_poll.name)
within("#poll_#{second_poll.id}") do