fix shebang test failure introduced at r41873

On Windows, it doesn't use /usr/bin/env.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41891 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2013-07-10 08:10:39 +00:00
parent ef9fd492fa
commit 372a9b1b79

View File

@ -103,7 +103,11 @@ class TestGemCommandsPristineCommand < Gem::TestCase
assert_path_exists gem_exec
assert_match '/usr/bin/env', File.read(gem_exec)
if win_platform?
assert_match /\A#!\s*ruby/, File.read(gem_exec)
else
assert_match /\A#!\s*\/usr\/bin\/env ruby/, File.read(gem_exec)
end
end
def test_execute_no_extension