summaryrefslogtreecommitdiff
path: root/spec/unit/cookbook
diff options
context:
space:
mode:
authorJay Mundrawala <jdmundrawala@gmail.com>2014-09-29 21:23:41 -0700
committerJay Mundrawala <jdmundrawala@gmail.com>2014-09-29 21:23:41 -0700
commita944d11c108a2bfb91f4b7756030a3e98abec9eb (patch)
tree8d13902a8891a90dab57322e8a6e3145c3bf04c1 /spec/unit/cookbook
parentcdfa54599e4fcd98afd640f6b757518320210259 (diff)
downloadchef-a944d11c108a2bfb91f4b7756030a3e98abec9eb.tar.gz
Syntax checker uses helper method for relative pathjdmundrawala/cookbook-loading
Test pass on windows
Diffstat (limited to 'spec/unit/cookbook')
-rw-r--r--spec/unit/cookbook/syntax_check_spec.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/unit/cookbook/syntax_check_spec.rb b/spec/unit/cookbook/syntax_check_spec.rb
index b83bffe1c9..cd1ce96716 100644
--- a/spec/unit/cookbook/syntax_check_spec.rb
+++ b/spec/unit/cookbook/syntax_check_spec.rb
@@ -20,6 +20,9 @@ require 'spec_helper'
require "chef/cookbook/syntax_check"
describe Chef::Cookbook::SyntaxCheck do
+ before do
+ Chef::Platform.stub(:windows?) { false }
+ end
let(:cookbook_path) { File.join(CHEF_SPEC_DATA, 'cookbooks', 'openldap') }
let(:syntax_check) { Chef::Cookbook::SyntaxCheck.new(cookbook_path) }