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
|
||||
|
||||
Reference in New Issue
Block a user