diff --git a/spec/features/budgets/investments_spec.rb b/spec/features/budgets/investments_spec.rb index ef2c1bf5b..4040717f1 100644 --- a/spec/features/budgets/investments_spec.rb +++ b/spec/features/budgets/investments_spec.rb @@ -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" diff --git a/spec/features/proposals_spec.rb b/spec/features/proposals_spec.rb index b7492e19c..e7d000f94 100644 --- a/spec/features/proposals_spec.rb +++ b/spec/features/proposals_spec.rb @@ -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"