diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2019-09-05 14:20:52 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2019-09-05 14:20:52 -0700 |
commit | 37a72ed07c6d7ecfbecc71203cc3ac7e3fb69352 (patch) | |
tree | 22443116594a05fdd8cd222a607e5c5d0bf1f88c /spec/support/mock/platform.rb | |
parent | a49e9c58e399c1514cdcabfdf0f50451935d0df4 (diff) | |
download | chef-lcg/chef-sugar.tar.gz |
checkpointlcg/chef-sugar
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'spec/support/mock/platform.rb')
-rw-r--r-- | spec/support/mock/platform.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/support/mock/platform.rb b/spec/support/mock/platform.rb index c6670827f9..1795c5a7ba 100644 --- a/spec/support/mock/platform.rb +++ b/spec/support/mock/platform.rb @@ -6,7 +6,7 @@ # testing code that mixes in platform specific modules like +Chef::Mixin::Securable+ # or +Chef::FileAccessControl+ def platform_mock(platform = :unix) - allow(ChefConfig).to receive(:windows?).and_return(platform == :windows ? true : false) + allow(ChefHelpers).to receive(:windows?).and_return(platform == :windows ? true : false) ENV["SYSTEMDRIVE"] = (platform == :windows ? "C:" : nil) if platform == :windows |