Cleanup (remove unnecessary code)

This commit is contained in:
Julian Herrero
2019-03-13 11:51:12 +01:00
parent 27553e9058
commit 8ae80cd1a1
6 changed files with 0 additions and 21 deletions

View File

@@ -8,11 +8,6 @@ feature "Admin feature flags" do
login_as(create(:administrator).user) login_as(create(:administrator).user)
end end
after do
Setting["feature.spending_proposals"] = nil
Setting["feature.spending_proposal_features.voting_allowed"] = nil
end
scenario "Enabled features are listed on menu" do scenario "Enabled features are listed on menu" do
visit admin_root_path visit admin_root_path

View File

@@ -20,10 +20,6 @@ feature "Admin legislation questions" do
Setting["feature.legislation"] = nil Setting["feature.legislation"] = nil
end end
after do
Setting["feature.legislation"] = true
end
scenario "Disabled with a feature flag" do scenario "Disabled with a feature flag" do
expect{ visit admin_legislation_process_questions_path(process) }.to raise_exception(FeatureFlags::FeatureDisabled) expect{ visit admin_legislation_process_questions_path(process) }.to raise_exception(FeatureFlags::FeatureDisabled)
end end

View File

@@ -10,15 +10,10 @@ feature "Internal valuation comments on Budget::Investments" do
let(:investment) { create(:budget_investment, budget: budget, group: group, heading: heading) } let(:investment) { create(:budget_investment, budget: budget, group: group, heading: heading) }
background do background do
Setting["feature.budgets"] = true
investment.valuators << valuator_user.valuator investment.valuators << valuator_user.valuator
login_as(valuator_user) login_as(valuator_user)
end end
after do
Setting["feature.budgets"] = nil
end
context "Show valuation comments" do context "Show valuation comments" do
context "Show valuation comments without public comments" do context "Show valuation comments without public comments" do
background do background do

View File

@@ -16,8 +16,6 @@ feature "Moderate budget investments" do
login_as(@mod.user) login_as(@mod.user)
expect{ visit moderation_budget_investments_path }.to raise_exception(FeatureFlags::FeatureDisabled) expect{ visit moderation_budget_investments_path }.to raise_exception(FeatureFlags::FeatureDisabled)
Setting["feature.budgets"] = true
end end
scenario "Hiding an investment", :js do scenario "Hiding an investment", :js do

View File

@@ -416,9 +416,6 @@ feature "Users" do
Setting["feature.budgets"] = nil Setting["feature.budgets"] = nil
visit user_path(user) visit user_path(user)
expect(page).to have_content("4 Comments") expect(page).to have_content("4 Comments")
Setting["feature.debates"] = true
Setting["feature.budgets"] = true
end end
end end

View File

@@ -16,8 +16,6 @@ feature "Valuation budget investments" do
expect{ expect{
visit valuation_budget_budget_investments_path(create(:budget)) visit valuation_budget_budget_investments_path(create(:budget))
}.to raise_exception(FeatureFlags::FeatureDisabled) }.to raise_exception(FeatureFlags::FeatureDisabled)
Setting["feature.budgets"] = true
end end
scenario "Display link to valuation section" do scenario "Display link to valuation section" do