diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/rubygems/helper.rb | 2 | ||||
| -rw-r--r-- | test/rubygems/utilities.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/rubygems/helper.rb b/test/rubygems/helper.rb index 1d110c7e30..4e738c3d40 100644 --- a/test/rubygems/helper.rb +++ b/test/rubygems/helper.rb @@ -1521,7 +1521,7 @@ Also, a list: # <tt>test/rubygems/</tt>. def self.cert_path(cert_name) - if 32 == (Time.at(2**32) rescue 32) + if (Time.at(2**32) rescue 32) == 32 cert_file = "#{__dir__}/#{cert_name}_cert_32.pem" return cert_file if File.exist? cert_file diff --git a/test/rubygems/utilities.rb b/test/rubygems/utilities.rb index b72b89907e..036240e12c 100644 --- a/test/rubygems/utilities.rb +++ b/test/rubygems/utilities.rb @@ -39,7 +39,7 @@ class Gem::FakeFetcher end def find_data(path) - return Gem.read_binary path.path if URI === path && "file" == path.scheme + return Gem.read_binary path.path if URI === path && path.scheme == "file" if URI === path && "URI::#{path.scheme.upcase}" != path.class.name raise ArgumentError, |
