Permalink
Browse files

Fixed an unit test to work on Cygwin.

  • Loading branch information...
mimaki committed Jul 3, 2017
1 parent 0de7eec commit ba1cd56ffa66ea9186d024c5126896746454428a
Showing with 3 additions and 3 deletions.
  1. +3 −3 test/bintest.rb
View
@@ -3,7 +3,7 @@
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 @@ def cmd(s)
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 @@ def shellquote(s)
ARGV.each do |gem|
case RbConfig::CONFIG['host_os']
when /mswin(?!ce)|mingw|cygwin|bccwin/
when /mswin(?!ce)|mingw|bccwin/
gem = gem.gsub('\\', '/')
end

0 comments on commit ba1cd56

Please sign in to comment.