summaryrefslogtreecommitdiff
path: root/spec/unit/cookbook
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/cookbook
parent1428270b0f2d0f2ae5d62ecb2aa512ffa7ac773e (diff)
downloadchef-68d6b10124b96012594d0a4fbe099eda738111b3.tar.gz
Stub `windows?` on ChefConfig so it applies to config
Diffstat (limited to 'spec/unit/cookbook')
-rw-r--r--spec/unit/cookbook/cookbook_version_loader_spec.rb2
-rw-r--r--spec/unit/cookbook/syntax_check_spec.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/cookbook/cookbook_version_loader_spec.rb b/spec/unit/cookbook/cookbook_version_loader_spec.rb
index 2c4ad11787..23ffc21f7f 100644
--- a/spec/unit/cookbook/cookbook_version_loader_spec.rb
+++ b/spec/unit/cookbook/cookbook_version_loader_spec.rb
@@ -20,7 +20,7 @@ require 'spec_helper'
describe Chef::Cookbook::CookbookVersionLoader do
before do
- allow(Chef::Platform).to receive(:windows?) { false }
+ allow(ChefConfig).to receive(:windows?) { false }
end
describe "loading a cookbook" do
diff --git a/spec/unit/cookbook/syntax_check_spec.rb b/spec/unit/cookbook/syntax_check_spec.rb
index 471fc01831..ee4e0bed02 100644
--- a/spec/unit/cookbook/syntax_check_spec.rb
+++ b/spec/unit/cookbook/syntax_check_spec.rb
@@ -21,7 +21,7 @@ require "chef/cookbook/syntax_check"
describe Chef::Cookbook::SyntaxCheck do
before do
- allow(Chef::Platform).to receive(:windows?) { false }
+ allow(ChefConfig).to receive(:windows?) { false }
end
let(:cookbook_path) { File.join(CHEF_SPEC_DATA, 'cookbooks', 'openldap') }