Fix specs

This commit is contained in:
taitus
2017-09-06 11:28:27 +02:00
parent b4a6f664bb
commit ea4d46f786
2 changed files with 4 additions and 0 deletions

View File

@@ -340,6 +340,8 @@ feature 'Budget Investments' do
end
scenario 'Can not access the community' do
Setting['feature.community'] = false
investment = create(:budget_investment, heading: heading)
visit budget_investment_path(budget_id: budget.id, id: investment.id)
expect(page).not_to have_content "Access the community"

View File

@@ -101,6 +101,8 @@ feature 'Proposals' do
end
scenario 'Can not access the community' do
Setting['feature.community'] = false
proposal = create(:proposal)
visit proposal_path(proposal)
expect(page).not_to have_content "Access the community"