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

@@ -11,8 +11,15 @@ feature 'Admin budget investments' do
context "Feature flag" do
scenario 'Disabled with a feature flag' do
background do
Setting['feature.budgets'] = nil
end
after do
Setting['feature.budgets'] = true
end
scenario 'Disabled with a feature flag' do
expect{ visit admin_budgets_path }.to raise_exception(FeatureFlags::FeatureDisabled)
end