diff options
Diffstat (limited to 'spec/unit/util')
-rw-r--r-- | spec/unit/util/diff_spec.rb | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/spec/unit/util/diff_spec.rb b/spec/unit/util/diff_spec.rb index ad1166f9fc..ad0ba627d3 100644 --- a/spec/unit/util/diff_spec.rb +++ b/spec/unit/util/diff_spec.rb @@ -21,12 +21,13 @@ require 'spec_helper' require 'tmpdir' describe Chef::Util::Diff, :uses_diff => true do - before(:all) do - @original_config = Chef::Config.hash_dup + before :each do + Chef::Config.reset end - after(:all) do - Chef::Config.configuration = @original_config if @original_config + after :all do + # Be a good citizen + Chef::Config.reset end let!(:old_tempfile) { Tempfile.new("chef-util-diff-spec") } |