Skip to content

Commit

Permalink
Changes tests for new texts
Browse files Browse the repository at this point in the history
  • Loading branch information
decabeza committed Sep 22, 2015
1 parent 34c8dd0 commit 5dde842
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions spec/features/votes_spec.rb
Expand Up @@ -232,15 +232,15 @@

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
Expand Down Expand Up @@ -284,7 +284,7 @@
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

Expand All @@ -295,7 +295,7 @@
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
Expand Down

0 comments on commit 5dde842

Please sign in to comment.