diff options
author | adamedx <adamed@opscode.com> | 2013-08-02 14:10:20 -0700 |
---|---|---|
committer | adamedx <adamed@opscode.com> | 2013-08-02 14:10:20 -0700 |
commit | dd6c702f507cf97c3dc4a763a55e922c6ffed163 (patch) | |
tree | 9e4f7a25458eff3d2bfd96b73c2f3fd13c2abf2c | |
parent | cf1fb483f83c4c0d7f983a30f96719ad833f1e30 (diff) | |
download | chef-dd6c702f507cf97c3dc4a763a55e922c6ffed163.tar.gz |
Restore config after tests are done
-rwxr-xr-x | spec/functional/provider/remote_file/cache_control_data_spec.rb | 8 |
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 |