1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[rubygems/rubygems] Fix ruby warning about unused local variables

https://github.com/rubygems/rubygems/commit/cca2fccd95
This commit is contained in:
David Rodríguez 2020-03-23 17:51:45 +01:00 committed by Hiroshi SHIBATA
parent 2ece4d96f0
commit 43daf4d288
Notes: git 2020-05-08 14:14:28 +09:00

View file

@ -176,7 +176,7 @@ class TestGemSpecFetcher < Gem::TestCase
fetcher.spec 'examp', 1
end
suggestions = @sf.suggest_gems_from_name('examplw', type = :latest, num_results = 1)
suggestions = @sf.suggest_gems_from_name('examplw', :latest, 1)
assert_equal ['example'], suggestions
suggestions = @sf.suggest_gems_from_name('other')