summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoradamedx <adamed@opscode.com>2013-08-02 14:10:20 -0700
committeradamedx <adamed@opscode.com>2013-08-02 14:10:20 -0700
commitdd6c702f507cf97c3dc4a763a55e922c6ffed163 (patch)
tree9e4f7a25458eff3d2bfd96b73c2f3fd13c2abf2c
parentcf1fb483f83c4c0d7f983a30f96719ad833f1e30 (diff)
downloadchef-dd6c702f507cf97c3dc4a763a55e922c6ffed163.tar.gz
Restore config after tests are done
-rwxr-xr-xspec/functional/provider/remote_file/cache_control_data_spec.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/functional/provider/remote_file/cache_control_data_spec.rb b/spec/functional/provider/remote_file/cache_control_data_spec.rb
index 13d5eae41f..63a4578c69 100755
--- a/spec/functional/provider/remote_file/cache_control_data_spec.rb
+++ b/spec/functional/provider/remote_file/cache_control_data_spec.rb
@@ -21,6 +21,14 @@ require 'uri'
describe Chef::Provider::RemoteFile::CacheControlData do
+ before do
+ @original_config = Chef::Config.hash_dup
+ end
+
+ after do
+ Chef::Config.configuration = @original_config if @original_config
+ end
+
before(:each) do
Chef::Config[:file_cache_path] = Dir.mktmpdir
end