fixes specs

This commit is contained in:
decabeza
2018-01-10 11:36:33 +01:00
parent 13ea6bdd6b
commit 3b6fa6cbb4
2 changed files with 6 additions and 6 deletions

View File

@@ -26,15 +26,15 @@ feature 'Votes' do
within("#budget-investments") do
within("#budget_investment_#{investment1.id}_votes") do
expect(page).to have_content "You have already supported this. Share it!"
expect(page).to have_content "You have already supported this investment project. Share it!"
end
within("#budget_investment_#{investment2.id}_votes") do
expect(page).not_to have_content "You have already supported this. Share it!"
expect(page).not_to have_content "You have already supported this investment project. Share it!"
end
within("#budget_investment_#{investment3.id}_votes") do
expect(page).not_to have_content "You have already supported this. Share it!"
expect(page).not_to have_content "You have already supported this investment project. Share it!"
end
end
end
@@ -48,7 +48,7 @@ feature 'Votes' do
find('.in-favor a').click
expect(page).to have_content "1 support"
expect(page).to have_content "You have already supported this. Share it!"
expect(page).to have_content "You have already supported this investment project. Share it!"
end
end
end
@@ -81,7 +81,7 @@ feature 'Votes' do
find('.in-favor a').click
expect(page).to have_content "1 support"
expect(page).to have_content "You have already supported this. Share it!"
expect(page).to have_content "You have already supported this investment project. Share it!"
end
end
end

View File

@@ -218,7 +218,7 @@ feature 'Budget Investments' do
find('.js-in-favor a').click
expect(page).to have_content "1 support"
expect(page).to have_content "You have already supported this. Share it!"
expect(page).to have_content "You have already supported this investment project. Share it!"
end
end