replace eq200 to text content on specs

This commit is contained in:
decabeza
2017-10-23 20:13:11 +02:00
parent 81e4978747
commit aa7dbaa9c4

View File

@@ -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