From 01a52cc61acda5f996c1e01245ffdaf11bcbf3e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juanjo=20Baza=CC=81n?= Date: Tue, 31 Jan 2017 19:09:58 +0100 Subject: [PATCH] fixes ambiguous match error in specs --- app/views/admin/poll/polls/_booths.html.erb | 2 +- spec/features/admin/poll/booth_assigments_spec.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/admin/poll/polls/_booths.html.erb b/app/views/admin/poll/polls/_booths.html.erb index 9a70b7c63..6672b72cb 100644 --- a/app/views/admin/poll/polls/_booths.html.erb +++ b/app/views/admin/poll/polls/_booths.html.erb @@ -5,7 +5,7 @@ <%= t("admin.polls.show.no_booths") %> <% else %> - +
diff --git a/spec/features/admin/poll/booth_assigments_spec.rb b/spec/features/admin/poll/booth_assigments_spec.rb index 3dc255104..7a07eab82 100644 --- a/spec/features/admin/poll/booth_assigments_spec.rb +++ b/spec/features/admin/poll/booth_assigments_spec.rb @@ -80,7 +80,7 @@ feature 'Admin booths assignments' do visit admin_poll_path(poll) click_link 'Booths (2)' - click_link booth.name + within('#assigned_booths_list') { click_link booth.name } click_link 'Officers' within('#officers_list') do @@ -119,7 +119,7 @@ feature 'Admin booths assignments' do visit admin_poll_path(poll) click_link 'Booths (2)' - click_link booth.name + within('#assigned_booths_list') { click_link booth.name } click_link 'Recounts' within('#recounts_list') do
<%= t("admin.polls.show.table_name") %> <%= t("admin.polls.show.table_location") %>