[rubygems/rubygems] Refactor Gem::RemoteFetcher::FetchError.build back to its initialize method

21dcdd2dc5
This commit is contained in:
Daniel Niknam 2021-08-22 20:06:02 +10:00 committed by Hiroshi SHIBATA
parent a508693f06
commit 589377fbdc
Notes: git 2021-08-31 19:06:56 +09:00
8 changed files with 28 additions and 37 deletions

View file

@ -182,7 +182,7 @@ class TestGemCommandsSourcesCommand < Gem::TestCase
uri = "http://beta-gems.example.com/specs.#{@marshal_version}.gz"
@fetcher.data[uri] = proc do
raise Gem::RemoteFetcher::FetchError.build('it died', uri)
raise Gem::RemoteFetcher::FetchError.new('it died', uri)
end
@cmd.handle_options %w[--add http://beta-gems.example.com]