mirror of
https://github.com/ruby/ruby.git
synced 2025-09-17 17:43:59 +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
|
@ -104,9 +104,7 @@ class TestGemSource < Gem::TestCase
|
|||
end
|
||||
|
||||
def test_fetch_spec_platform
|
||||
specs = spec_fetcher do |fetcher|
|
||||
fetcher.legacy_platform
|
||||
end
|
||||
specs = spec_fetcher(&:legacy_platform)
|
||||
|
||||
spec = @source.fetch_spec tuple("pl", Gem::Version.new(1), "i386-linux")
|
||||
|
||||
|
@ -122,7 +120,7 @@ class TestGemSource < Gem::TestCase
|
|||
end
|
||||
|
||||
def test_load_specs
|
||||
released = @source.load_specs(:released).map {|spec| spec.full_name }
|
||||
released = @source.load_specs(:released).map(&:full_name)
|
||||
assert_equal %W[a-2 a-1 b-2], released
|
||||
|
||||
cache_dir = File.join Gem.spec_cache_dir, "gems.example.com%80"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue