[rubygems/rubygems] util/rubocop -A --only Performance/Count
https://github.com/rubygems/rubygems/commit/46d5d6d1d3
This commit is contained in:
parent
2eb99350f4
commit
65752b61e7
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user