diff --git a/spec/config_env_spec.rb b/spec/config_env_spec.rb index a5eee612..9ddb151b 100644 --- a/spec/config_env_spec.rb +++ b/spec/config_env_spec.rb @@ -10,8 +10,14 @@ Config.load_files "#{fixture_path}/settings.yml", "#{fixture_path}/multilevel.yml" end + before :all do + ENV_BACKUP = ENV.to_hash + end + after :all do Config.use_env = false + + ENV_BACKUP.each { |k, v| ENV[k] = v } end before :each do