[rubygems/rubygems] util/rubocop -A --only Performance/Count

https://github.com/rubygems/rubygems/commit/46d5d6d1d3
This commit is contained in:
Hiroshi SHIBATA 2023-03-16 10:32:05 +09:00
parent 2eb99350f4
commit 65752b61e7

View File

@ -42,13 +42,13 @@ class TestKernel < Gem::TestCase
def test_gem_redundant
assert gem("a", "= 1"), "Should load"
refute gem("a", "= 1"), "Should not load"
assert_equal 1, $:.select {|p| p.include?("a-1/lib") }.size
assert_equal 1, $:.count {|p| p.include?("a-1/lib") }
end
def test_gem_overlapping
assert gem("a", "= 1"), "Should load"
refute gem("a", ">= 1"), "Should not load"
assert_equal 1, $:.select {|p| p.include?("a-1/lib") }.size
assert_equal 1, $:.count {|p| p.include?("a-1/lib") }
end
def test_gem_prerelease