Cleanup Settings values modified after specs are run

This commit is contained in:
Bertocq
2017-05-30 00:55:53 +02:00
parent 16edbf15a2
commit 798b646135
23 changed files with 109 additions and 14 deletions

View File

@@ -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