Update related specs

This commit is contained in:
decabeza
2019-02-08 11:56:49 +01:00
parent 55fb14ac14
commit 2d2633e14b
2 changed files with 4 additions and 4 deletions

View File

@@ -45,7 +45,7 @@ feature 'Votes' do
visit budget_investments_path(budget, heading_id: heading.id)
within('.supports') do
accept_confirm { find('.in-favor a').click }
find(".in-favor a").click
expect(page).to have_content "1 support"
expect(page).to have_content "You have already supported this investment project. Share it!"
@@ -67,7 +67,7 @@ feature 'Votes' do
visit budget_investment_path(budget, @investment)
within('.supports') do
accept_confirm { find('.in-favor a').click }
find(".in-favor a").click
expect(page).to have_content "1 support"
expect(page).not_to have_selector ".in-favor a"
@@ -78,7 +78,7 @@ feature 'Votes' do
visit budget_investment_path(budget, @investment)
within('.supports') do
accept_confirm { find('.in-favor a').click }
find(".in-favor a").click
expect(page).to have_content "1 support"
expect(page).to have_content "You have already supported this investment project. Share it!"

View File

@@ -224,7 +224,7 @@ feature 'Budget Investments' do
expect(page).to have_content(budget_investment.title)
within("#budget-investments") do
accept_confirm { find('.js-in-favor a').click }
find(".js-in-favor a").click
expect(page).to have_content "1 support"
expect(page).to have_content "You have already supported this investment project. Share it!"