Permalink
Browse files

Infer cookbook_path correctly on Windows, refs #38

  • Loading branch information...
1 parent c0ad450 commit 0d2fcb6a339e95002f77907fdd43e54c60cf2b93 @acrmp acrmp committed Aug 26, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/chefspec/chef_runner.rb
@@ -170,7 +170,7 @@ def fake_ohai(ohai)
#
# @return [String] The path to the cookbooks directory
def default_cookbook_path
- Pathname.new(File.join(caller(2).first.split(':').slice(0..-3).first, "..", "..", "..")).cleanpath
+ Pathname.new(File.join(caller(2).first.split(':').slice(0..-3).join(':'), '..', '..', '..')).cleanpath
end
# Find the resource with the declared type and name

0 comments on commit 0d2fcb6

Please sign in to comment.