Cleanup (remove unnecessary code)
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user