From 2d2633e14b36ed476d2dbccf991bd19b6c4cf394 Mon Sep 17 00:00:00 2001 From: decabeza Date: Fri, 8 Feb 2019 11:56:49 +0100 Subject: [PATCH] Update related specs --- spec/features/budgets/votes_spec.rb | 6 +++--- spec/features/management/budget_investments_spec.rb | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/features/budgets/votes_spec.rb b/spec/features/budgets/votes_spec.rb index 2b694c741..85f2dfbb0 100644 --- a/spec/features/budgets/votes_spec.rb +++ b/spec/features/budgets/votes_spec.rb @@ -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!" diff --git a/spec/features/management/budget_investments_spec.rb b/spec/features/management/budget_investments_spec.rb index 10b80ff1d..3c204f7b5 100644 --- a/spec/features/management/budget_investments_spec.rb +++ b/spec/features/management/budget_investments_spec.rb @@ -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!"