summaryrefslogtreecommitdiff
path: root/test/rubygems/test_gem_commands_pristine_command.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/rubygems/test_gem_commands_pristine_command.rb')
-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