From 151db53a9bc1b68240a1d53a4e848c3bbd0dcb08 Mon Sep 17 00:00:00 2001 From: Alberto Garcia Cabeza Date: Thu, 22 Dec 2016 19:06:11 +0100 Subject: [PATCH] fixes specs --- config/locales/en.yml | 2 +- spec/features/home_spec.rb | 2 +- spec/features/polls/polls_spec.rb | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/config/locales/en.yml b/config/locales/en.yml index f4ba4630d..298b33858 100755 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -388,7 +388,7 @@ en: incoming: "Incoming" expired: "Expired" title: "Polls" - button: "Participate in this polls" + button: "Participate in this poll" show: dates_title: "Participation dates" cant_answer_not_logged_in: "You must %{signin} or %{signup} to participate." diff --git a/spec/features/home_spec.rb b/spec/features/home_spec.rb index 708b1c883..4deed36bb 100644 --- a/spec/features/home_spec.rb +++ b/spec/features/home_spec.rb @@ -43,7 +43,7 @@ feature "Home" do end 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 diff --git a/spec/features/polls/polls_spec.rb b/spec/features/polls/polls_spec.rb index a9cc9d00f..ceacda164 100644 --- a/spec/features/polls/polls_spec.rb +++ b/spec/features/polls/polls_spec.rb @@ -10,7 +10,8 @@ feature 'Polls' do visit polls_path 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