From 79d4a82bfa58affd5a35604760aa80a830c37590 Mon Sep 17 00:00:00 2001 From: taitus Date: Wed, 6 Sep 2017 14:16:03 +0200 Subject: [PATCH] Fix specs --- spec/features/budgets/investments_spec.rb | 2 ++ spec/features/proposals_spec.rb | 2 ++ 2 files changed, 4 insertions(+) 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 63050c43f..0c69eee3e 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"