aboutsummaryrefslogtreecommitdiffstats
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.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/rubygems/test_gem_commands_pristine_command.rb b/test/rubygems/test_gem_commands_pristine_command.rb
index c5a2ab3f2f..78c3f85a5b 100644
--- a/test/rubygems/test_gem_commands_pristine_command.rb
+++ b/test/rubygems/test_gem_commands_pristine_command.rb
@@ -104,9 +104,9 @@ class TestGemCommandsPristineCommand < Gem::TestCase
assert_path_exists gem_exec
if win_platform?
- assert_match /\A#!\s*ruby/, File.read(gem_exec)
+ assert_match %r%\A#!\s*ruby%, File.read(gem_exec)
else
- assert_match /\A#!\s*\/usr\/bin\/env ruby/, File.read(gem_exec)
+ assert_match %r%\A#!\s*/usr/bin/env ruby%, File.read(gem_exec)
end
end