diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/rubygems/helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/rubygems/helper.rb b/test/rubygems/helper.rb index 1cdf7c4459..d259fbde1b 100644 --- a/test/rubygems/helper.rb +++ b/test/rubygems/helper.rb @@ -582,7 +582,7 @@ class Gem::TestCase < Test::Unit::TestCase end def in_path?(executable) # :nodoc: - return true if %r{\A([A-Z]:|/)} =~ executable && File.exist?(executable) + return true if %r{\A([A-Z]:|/)}.match?(executable) && File.exist?(executable) ENV["PATH"].split(File::PATH_SEPARATOR).any? do |directory| File.exist? File.join directory, executable |
