summaryrefslogtreecommitdiff
path: root/spec/unit/shell_spec.rb
diff options
context:
space:
mode:
authordanielsdeleo <dan@getchef.com>2015-05-13 19:20:32 -0700
committerdanielsdeleo <dan@getchef.com>2015-05-20 15:13:57 -0700
commit68d6b10124b96012594d0a4fbe099eda738111b3 (patch)
tree3530dc61c41fb3203de925bdbd7ca798cdd246c6 /spec/unit/shell_spec.rb
parent1428270b0f2d0f2ae5d62ecb2aa512ffa7ac773e (diff)
downloadchef-68d6b10124b96012594d0a4fbe099eda738111b3.tar.gz
Stub `windows?` on ChefConfig so it applies to config
Diffstat (limited to 'spec/unit/shell_spec.rb')
-rw-r--r--spec/unit/shell_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/shell_spec.rb b/spec/unit/shell_spec.rb
index 3a8f1a5346..379043a017 100644
--- a/spec/unit/shell_spec.rb
+++ b/spec/unit/shell_spec.rb
@@ -43,7 +43,7 @@ describe Shell do
before do
Shell.irb_conf = {}
allow(Shell::ShellSession.instance).to receive(:reset!)
- allow(Chef::Platform).to receive(:windows?).and_return(false)
+ allow(ChefConfig).to receive(:windows?).and_return(false)
allow(Chef::Util::PathHelper).to receive(:home).and_return('/home/foo')
end