From aa7dbaa9c497d02446bf11874ad1be6837bd45c6 Mon Sep 17 00:00:00 2001 From: decabeza Date: Mon, 23 Oct 2017 20:13:11 +0200 Subject: [PATCH] replace eq200 to text content on specs --- spec/features/polls/polls_spec.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/features/polls/polls_spec.rb b/spec/features/polls/polls_spec.rb index 8fe23d2ea..82180cb23 100644 --- a/spec/features/polls/polls_spec.rb +++ b/spec/features/polls/polls_spec.rb @@ -396,10 +396,10 @@ feature 'Polls' do expect(page).to have_content("Participation statistics") visit poll_results_path(poll) - expect(page.driver.status_code).to eq(200) + expect(page).to have_content("Questions") visit poll_stats_path(poll) - expect(page.driver.status_code).to eq(200) + expect(page).to have_content("Participation data") end scenario "Don't show poll results and stats if not enabled" do @@ -447,10 +447,10 @@ feature 'Polls' do expect(page).to have_content("Participation statistics") visit poll_results_path(poll) - expect(page.driver.status_code).to eq(200) + expect(page).to have_content("Questions") visit poll_stats_path(poll) - expect(page.driver.status_code).to eq(200) + expect(page).to have_content("Participation data") end end end