Files
nairobi/spec/support/common_actions/budgets.rb
2018-06-04 08:55:53 -07:00

14 lines
370 B
Ruby

module Budgets
def expect_message_organizations_cannot_vote
expect(page).to have_content 'Organization'
expect(page).to have_selector('.in-favor a', visible: false)
end
def add_to_ballot(budget_investment)
within("#budget_investment_#{budget_investment.id}") do
find('.add a').click
expect(page).to have_content "Remove"
end
end
end