summaryrefslogtreecommitdiff
path: root/lib/chef/config.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/config.rb')
-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