From aa13ddee5a7ada2dba8b624ad5325d0132ce883f Mon Sep 17 00:00:00 2001 From: sersut Date: Thu, 23 May 2013 09:57:51 -0700 Subject: Fix specs on windows. --- spec/support/chef_helpers.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'spec/support/chef_helpers.rb') diff --git a/spec/support/chef_helpers.rb b/spec/support/chef_helpers.rb index 8315108122..11fec106c4 100644 --- a/spec/support/chef_helpers.rb +++ b/spec/support/chef_helpers.rb @@ -77,3 +77,9 @@ def system_windows_service_gem? system windows_service_gem_check_command end end + +# This is a helper to canonicalize paths that we're using in the file +# tests. +def canonicalize_path(path) + windows? ? path.gsub('/', '\\') : path +end -- cgit v1.2.1