Skip to content

Commit

Permalink
Merge pull request #15 from ruby/vais/windows
Browse files Browse the repository at this point in the history
Fix ruby executable path resolution on Windows
  • Loading branch information
eregon committed Mar 18, 2016
2 parents 8c04853 + 6c110e4 commit f90efa0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/mspec/helpers/ruby_exe.rb
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ def resolve_ruby_exe
exe, *rest = cmd.split(" ")

if File.file?(exe) and File.executable?(exe)
return [File.expand_path(exe), *rest].join(" ")
exe = File.expand_path(exe)
exe = exe.tr('/', '\\') if PlatformGuard.windows?
return [exe, *rest].join(" ")
end
end
nil
Expand Down

0 comments on commit f90efa0

Please sign in to comment.