From 5dde8428cf22177c68abf1a4f03abc80f258e52c Mon Sep 17 00:00:00 2001 From: Alberto Garcia Cabeza Date: Tue, 22 Sep 2015 17:16:25 +0200 Subject: [PATCH] Changes tests for new texts --- spec/features/votes_spec.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/spec/features/votes_spec.rb b/spec/features/votes_spec.rb index 81995397d..f340dedd6 100644 --- a/spec/features/votes_spec.rb +++ b/spec/features/votes_spec.rb @@ -232,15 +232,15 @@ feature 'Votes' do within("#proposals") do within("#proposal_#{proposal1.id}_votes") do - expect(page).to have_content "You already supported this proposal!" + expect(page).to have_content "You already supported this proposal, share it!" end within("#proposal_#{proposal2.id}_votes") do - expect(page).to_not have_content "You already supported this proposal!" + expect(page).to_not have_content "You already supported this proposal, share it!" end within("#proposal_#{proposal3.id}_votes") do - expect(page).to_not have_content "You already supported this proposal!" + expect(page).to_not have_content "You already supported this proposal, share it!" end end end @@ -284,7 +284,7 @@ feature 'Votes' do find('.in-favor a').click expect(page).to have_content "1 support" - expect(page).to have_content "You already supported this proposal!" + expect(page).to have_content "You already supported this proposal, share it!" end end @@ -295,7 +295,7 @@ feature 'Votes' do find('.in-favor a').click expect(page).to have_content "1 support" - expect(page).to have_content "You already supported this proposal!" + expect(page).to have_content "You already supported this proposal, share it!" end expect(URI.parse(current_url).path).to eq(proposals_path) end