From b13b27dcaad10206acd0fd7472b09ebf4e586a4b Mon Sep 17 00:00:00 2001 From: Alberto Garcia Cabeza Date: Mon, 30 Jan 2017 22:06:01 +0100 Subject: [PATCH] removes answers on polls questions show specs --- spec/features/polls/questions_spec.rb | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/spec/features/polls/questions_spec.rb b/spec/features/polls/questions_spec.rb index 39b60930d..5ccbd33a8 100644 --- a/spec/features/polls/questions_spec.rb +++ b/spec/features/polls/questions_spec.rb @@ -21,12 +21,7 @@ feature 'Poll Questions' do visit question_path(question) - expect(page).to have_content('Han Solo') - expect(page).to have_content('Chewbacca') expect(page).to have_content('You must Sign in or Sign up to participate') - - expect(page).to_not have_link('Han Solo') - expect(page).to_not have_link('Chewbacca') end scenario 'Level 1 users' do @@ -35,12 +30,7 @@ feature 'Poll Questions' do login_as(create(:user, geozone: geozone)) visit question_path(question) - expect(page).to have_content('Han Solo') - expect(page).to have_content('Chewbacca') expect(page).to have_content('You must verify your account in order to answer') - - expect(page).to_not have_link('Han Solo') - expect(page).to_not have_link('Chewbacca') end scenario 'Level 2 users in an poll question for a geozone which is not theirs' do @@ -51,10 +41,7 @@ feature 'Poll Questions' do login_as(create(:user, :level_two, geozone: geozone)) visit question_path(question) - expect(page).to have_content('Vader') - expect(page).to have_content('Palpatine') - expect(page).to_not have_link('Vader') - expect(page).to_not have_link('Palpatine') + expect(page).to have_content('This question is not available on your geozone') end scenario 'Level 2 users who can answer' do