fixes specs

This commit is contained in:
rgarcia
2017-01-13 11:37:06 +01:00
parent 470fe41585
commit dbf8b86518

View File

@@ -94,15 +94,13 @@ feature 'Votes' do
visit budget_investments_path(budget, heading_id: heading.id) visit budget_investments_path(budget, heading_id: heading.id)
within("#budget_investment_#{investment.id}") do within("#budget_investment_#{investment.id}") do
find("div.js-participation").hover expect(page).to_not have_css("budget_investment_#{investment.id}_votes")
expect(page).to have_content 'No Selecting Allowed'
end end
visit budget_investment_path(budget, investment) visit budget_investment_path(budget, investment)
within("#budget_investment_#{investment.id}") do within("#budget_investment_#{investment.id}") do
find("div.js-participation").hover expect(page).to_not have_css("budget_investment_#{investment.id}_votes")
expect(page).to have_content 'No Selecting Allowed'
end end
end end
end end