From 5f55c9a10fb9f5647479d40ebd5cb01ee7d59b14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juanjo=20Baza=CC=81n?= Date: Wed, 1 Feb 2017 13:58:50 +0100 Subject: [PATCH] fixes spec --- spec/features/officing/final_recount_spec.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/spec/features/officing/final_recount_spec.rb b/spec/features/officing/final_recount_spec.rb index e712f13f7..c9ed2a5c5 100644 --- a/spec/features/officing/final_recount_spec.rb +++ b/spec/features/officing/final_recount_spec.rb @@ -43,7 +43,10 @@ feature 'Officing Final Recount' do click_link 'Final recounts' end - click_link @poll.name + within("#poll_#{@poll.id}") do + expect(page).to have_content(@poll.name) + click_link 'Add final recount' + end expect(page).to_not have_content('Your recounts')