Cleanup Settings values modified after specs are run
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user