Merge pull request #15 from ruby/vais/windows · ruby/mspec@f90efa0 (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Commit f90efa0

Merge pull request #15 from ruby/vais/windows

Fix ruby executable path resolution on Windows

File tree

1 file changed

lines changed

1 file changed

lines changed

Lines changed: 3 additions & 1 deletion

Original file line number Diff line number Diff line change
@@ -108,7 +108,9 @@ def resolve_ruby_exe
108 108 exe, *rest = cmd.split(" ")
109 109
110 110 if File.file?(exe) and File.executable?(exe)
111 -return [File.expand_path(exe), *rest].join(" ")
111 +exe = File.expand_path(exe)
112 +exe = exe.tr('/', '\\') if PlatformGuard.windows?
113 +return [exe, *rest].join(" ")
112 114 end
113 115 end
114 116 nil