summaryrefslogtreecommitdiff
path: root/test/rubygems
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-10 08:10:39 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-10 08:10:39 +0000
commit372a9b1b79476b7f78fd26c136f95c06af04dc24 (patch)
tree6d3428e7aafae3dcc5fe7d69b621341c230f9a6e /test/rubygems
parentef9fd492fa235523ec39d50c87e7cd4e3c377f7c (diff)
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
Diffstat (limited to 'test/rubygems')
-rw-r--r--test/rubygems/test_gem_commands_pristine_command.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/rubygems/test_gem_commands_pristine_command.rb b/test/rubygems/test_gem_commands_pristine_command.rb
index 425f0eae1e..c5a2ab3f2f 100644
--- a/test/rubygems/test_gem_commands_pristine_command.rb
+++ b/test/rubygems/test_gem_commands_pristine_command.rb
@@ -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