Commit ba1cd56f authored by Hiroshi Mimaki's avatar Hiroshi Mimaki

Fixed an unit test to work on Cygwin.

parent 0de7eec6
......@@ -3,7 +3,7 @@ require 'test/assert.rb'
def cmd(s)
case RbConfig::CONFIG['host_os']
when /mswin(?!ce)|mingw|cygwin|bccwin/
when /mswin(?!ce)|mingw|bccwin/
"bin\\#{s}.exe"
else
"bin/#{s}"
......@@ -12,7 +12,7 @@ end
def shellquote(s)
case RbConfig::CONFIG['host_os']
when /mswin(?!ce)|mingw|cygwin|bccwin/
when /mswin(?!ce)|mingw|bccwin/
"\"#{s}\""
else
"'#{s}'"
......@@ -21,7 +21,7 @@ end
ARGV.each do |gem|
case RbConfig::CONFIG['host_os']
when /mswin(?!ce)|mingw|cygwin|bccwin/
when /mswin(?!ce)|mingw|bccwin/
gem = gem.gsub('\\', '/')
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment