summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorClaire McQuin <claire@getchef.com>2014-04-30 12:56:43 -0700
committerClaire McQuin <claire@getchef.com>2014-04-30 12:56:43 -0700
commite589f0513b74cf908b1524e70df5088ae7c4f396 (patch)
tree51756a7fbb11ae792d54e7a0cbbea1be05d395e8 /lib
parent691b05aefb5a1b9c5f6981b12381fee6e2fd8d1c (diff)
downloadchef-e589f0513b74cf908b1524e70df5088ae7c4f396.tar.gz
comment: add hook to avoid twiddling global state in rspec
Diffstat (limited to 'lib')
-rw-r--r--lib/chef/config.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/chef/config.rb b/lib/chef/config.rb
index 86741c4a9e..a836c62456 100644
--- a/lib/chef/config.rb
+++ b/lib/chef/config.rb
@@ -520,6 +520,8 @@ class Chef
set_defaults_for_nix
end
+ # This provides a hook which rspec can stub so that we can avoid twiddling
+ # global state in tests.
def self.env
ENV
end