summaryrefslogtreecommitdiff
path: root/test/rubygems/test_gem_source_vendor.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2023-03-22 14:54:18 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2023-03-23 17:18:49 +0900
commit19e9c4004b9d137ad48757f3f4c2d92257e6c2c4 (patch)
tree743aba39899da1fd949de03c6b435671475256e7 /test/rubygems/test_gem_source_vendor.rb
parenta3670249fa96f9d6d9d630e43f4edaafdd55e7af (diff)
downloadruby-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_vendor.rb')
-rw-r--r--test/rubygems/test_gem_source_vendor.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/rubygems/test_gem_source_vendor.rb b/test/rubygems/test_gem_source_vendor.rb
index 50a446c90f..1e24e93f35 100644
--- a/test/rubygems/test_gem_source_vendor.rb
+++ b/test/rubygems/test_gem_source_vendor.rb
@@ -15,7 +15,7 @@ class TestGemSourceVendor < Gem::TestCase
git = Gem::Source::Git.new "a", "a", nil
installed = Gem::Source::Installed.new
- assert_equal(0, vendor.<=>(vendor), "vendor <=> vendor")
+ assert_equal(0, vendor.<=>(vendor), "vendor <=> vendor") # rubocop:disable Lint/BinaryOperatorWithIdenticalOperands
assert_equal(1, vendor.<=>(remote), "vendor <=> remote")
assert_equal(-1, remote.<=>(vendor), "remote <=> vendor")