From a944d11c108a2bfb91f4b7756030a3e98abec9eb Mon Sep 17 00:00:00 2001 From: Jay Mundrawala Date: Mon, 29 Sep 2014 21:23:41 -0700 Subject: Syntax checker uses helper method for relative path Test pass on windows --- spec/unit/cookbook/syntax_check_spec.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'spec/unit/cookbook') 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) } -- cgit v1.2.1