Fix specs
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user