summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoah Kantrowitz <noah@coderanger.net>2016-09-06 15:27:35 -0700
committerNoah Kantrowitz <noah@coderanger.net>2016-09-06 15:27:35 -0700
commit073405c5fd6e73d286da4cce9fdd1c1ffa3e2dcd (patch)
tree307936ee0e1ad0d1140cf0c542456aaef3a6fdba
parent85164a9a0de7de959d338839c42f1fa1da67a80e (diff)
downloadchef-073405c5fd6e73d286da4cce9fdd1c1ffa3e2dcd.tar.gz
Thanks, Windows.
Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
-rw-r--r--spec/unit/run_context/cookbook_compiler_spec.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/unit/run_context/cookbook_compiler_spec.rb b/spec/unit/run_context/cookbook_compiler_spec.rb
index e93088cd5f..feb39615b6 100644
--- a/spec/unit/run_context/cookbook_compiler_spec.rb
+++ b/spec/unit/run_context/cookbook_compiler_spec.rb
@@ -163,7 +163,9 @@ describe Chef::RunContext::CookbookCompiler do
describe "event dispatch" do
let(:recipe) { "dependency1::default" }
let(:recipe_path) do
- File.expand_path("../../../data/run_context/cookbooks/dependency1/recipes/default.rb", __FILE__)
+ File.expand_path("../../../data/run_context/cookbooks/dependency1/recipes/default.rb", __FILE__).tap do |path|
+ path.gsub!(File::SEPARATOR, File::ALT_SEPARATOR) if File::ALT_SEPARATOR
+ end
end
before do
node.run_list(recipe)