Cleanup (remove unnecessary code)
This commit is contained in:
@@ -8,11 +8,6 @@ feature "Admin feature flags" do
|
||||
login_as(create(:administrator).user)
|
||||
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
|
||||
visit admin_root_path
|
||||
|
||||
|
||||
@@ -20,10 +20,6 @@ feature "Admin legislation questions" do
|
||||
Setting["feature.legislation"] = nil
|
||||
end
|
||||
|
||||
after do
|
||||
Setting["feature.legislation"] = true
|
||||
end
|
||||
|
||||
scenario "Disabled with a feature flag" do
|
||||
expect{ visit admin_legislation_process_questions_path(process) }.to raise_exception(FeatureFlags::FeatureDisabled)
|
||||
end
|
||||
|
||||
@@ -10,15 +10,10 @@ feature "Internal valuation comments on Budget::Investments" do
|
||||
let(:investment) { create(:budget_investment, budget: budget, group: group, heading: heading) }
|
||||
|
||||
background do
|
||||
Setting["feature.budgets"] = true
|
||||
investment.valuators << valuator_user.valuator
|
||||
login_as(valuator_user)
|
||||
end
|
||||
|
||||
after do
|
||||
Setting["feature.budgets"] = nil
|
||||
end
|
||||
|
||||
context "Show valuation comments" do
|
||||
context "Show valuation comments without public comments" do
|
||||
background do
|
||||
|
||||
@@ -16,8 +16,6 @@ feature "Moderate budget investments" do
|
||||
login_as(@mod.user)
|
||||
|
||||
expect{ visit moderation_budget_investments_path }.to raise_exception(FeatureFlags::FeatureDisabled)
|
||||
|
||||
Setting["feature.budgets"] = true
|
||||
end
|
||||
|
||||
scenario "Hiding an investment", :js do
|
||||
|
||||
@@ -416,9 +416,6 @@ feature "Users" do
|
||||
Setting["feature.budgets"] = nil
|
||||
visit user_path(user)
|
||||
expect(page).to have_content("4 Comments")
|
||||
|
||||
Setting["feature.debates"] = true
|
||||
Setting["feature.budgets"] = true
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -16,8 +16,6 @@ feature "Valuation budget investments" do
|
||||
expect{
|
||||
visit valuation_budget_budget_investments_path(create(:budget))
|
||||
}.to raise_exception(FeatureFlags::FeatureDisabled)
|
||||
|
||||
Setting["feature.budgets"] = true
|
||||
end
|
||||
|
||||
scenario "Display link to valuation section" do
|
||||
|
||||
Reference in New Issue
Block a user