fixes specs

This commit is contained in:
Alberto Garcia Cabeza
2016-12-22 19:06:11 +01:00
parent 6dd3320425
commit 151db53a9b
3 changed files with 4 additions and 3 deletions

View File

@@ -388,7 +388,7 @@ en:
incoming: "Incoming" incoming: "Incoming"
expired: "Expired" expired: "Expired"
title: "Polls" title: "Polls"
button: "Participate in this polls" button: "Participate in this poll"
show: show:
dates_title: "Participation dates" dates_title: "Participation dates"
cant_answer_not_logged_in: "You must %{signin} or %{signup} to participate." cant_answer_not_logged_in: "You must %{signin} or %{signup} to participate."

View File

@@ -43,7 +43,7 @@ feature "Home" do
end end
def ie_alert_box_xpath def ie_alert_box_xpath
"/html/body/div[@class='wrapper']/comment()[contains(.,'ie-callout')]" "/html/body/div[@class='wrapper ']/comment()[contains(.,'ie-callout')]"
end end
end end
end end

View File

@@ -10,7 +10,8 @@ feature 'Polls' do
visit polls_path visit polls_path
polls.each do |poll| polls.each do |poll|
expect(page).to have_link(poll.name) expect(page).to have_content(poll.name)
expect(page).to have_link("Participate in this poll")
end end
end end