Changes tests for new texts

This commit is contained in:
Alberto Garcia Cabeza
2015-09-22 17:16:25 +02:00
parent 34c8dd0b8a
commit 5dde8428cf

View File

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