Cleanup Settings values modified after specs are run
This commit is contained in:
@@ -3,11 +3,17 @@ require 'rails_helper'
|
||||
feature 'Admin feature flags' do
|
||||
|
||||
background do
|
||||
Setting["feature.spending_proposals"] = true
|
||||
Setting['feature.spending_proposals'] = true
|
||||
Setting['feature.spending_proposal_features.voting_allowed'] = true
|
||||
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
|
||||
|
||||
@@ -65,4 +71,4 @@ feature 'Admin feature flags' do
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user