util/rubocop -A --only Style/SymbolProc

This commit is contained in:
Hiroshi SHIBATA 2023-03-16 12:57:49 +09:00
parent b304cf324a
commit 5211900d37
61 changed files with 239 additions and 295 deletions

View file

@ -15,7 +15,7 @@ class TestGemResolverLockSet < Gem::TestCase
specs = @set.add "a", "2", Gem::Platform::RUBY
spec = specs.first
assert_equal %w[a-2], @set.specs.map {|t| t.full_name }
assert_equal %w[a-2], @set.specs.map(&:full_name)
assert_kind_of Gem::Resolver::LockSpecification, spec
@ -33,11 +33,11 @@ class TestGemResolverLockSet < Gem::TestCase
found = @set.find_all dep "a"
assert_equal %w[a-2], found.map {|s| s.full_name }
assert_equal %w[a-2], found.map(&:full_name)
found = @set.find_all dep "a", ">= 0.a"
assert_equal %w[a-1.a a-2], found.map {|s| s.full_name }
assert_equal %w[a-1.a a-2], found.map(&:full_name)
end
def test_load_spec