mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
util/rubocop -A --only Style/SymbolProc
This commit is contained in:
parent
b304cf324a
commit
5211900d37
61 changed files with 239 additions and 295 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue