diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2023-03-22 14:54:18 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2023-03-23 17:18:49 +0900 |
commit | 19e9c4004b9d137ad48757f3f4c2d92257e6c2c4 (patch) | |
tree | 743aba39899da1fd949de03c6b435671475256e7 /test/rubygems/test_gem_source_installed.rb | |
parent | a3670249fa96f9d6d9d630e43f4edaafdd55e7af (diff) | |
download | ruby-19e9c4004b9d137ad48757f3f4c2d92257e6c2c4.tar.gz |
[rubygems/rubygems] util/rubocop -A --only Lint/BinaryOperatorWithIdenticalOperands
Many of class of RubyGems have original <=> methods. We should ignore
these cops for testing.
https://github.com/rubygems/rubygems/commit/0a8645dc3b
Diffstat (limited to 'test/rubygems/test_gem_source_installed.rb')
-rw-r--r-- | test/rubygems/test_gem_source_installed.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/rubygems/test_gem_source_installed.rb b/test/rubygems/test_gem_source_installed.rb index 5638e4b0b8..a04d5307c5 100644 --- a/test/rubygems/test_gem_source_installed.rb +++ b/test/rubygems/test_gem_source_installed.rb @@ -14,7 +14,7 @@ class TestGemSourceInstalled < Gem::TestCase git = Gem::Source::Git.new "a", "a", nil vendor = Gem::Source::Vendor.new "a" - assert_equal(0, installed.<=>(installed), "installed <=> installed") + assert_equal(0, installed.<=>(installed), "installed <=> installed") # rubocop:disable Lint/BinaryOperatorWithIdenticalOperands assert_equal(-1, remote.<=>(installed), "remote <=> installed") assert_equal(1, installed.<=>(remote), "installed <=> remote") |