Skip to content

Commit

Permalink
Gem::Fetcher::FetchError should receive an uri
Browse files Browse the repository at this point in the history
The one that failed to be fetched.
  • Loading branch information
deivid-rodriguez committed Nov 13, 2020
1 parent c6303ff commit 22a6cbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bundler/spec/bundler/fetcher/index_spec.rb
Expand Up @@ -19,7 +19,7 @@
context "error handling" do
let(:remote_uri) { Bundler::URI("http://remote-uri.org") }
before do
allow(rubygems).to receive(:fetch_all_remote_specs) { raise Gem::RemoteFetcher::FetchError.new(error_message, nil) }
allow(rubygems).to receive(:fetch_all_remote_specs) { raise Gem::RemoteFetcher::FetchError.new(error_message, display_uri) }
allow(subject).to receive(:remote_uri).and_return(remote_uri)
end

Expand Down

0 comments on commit 22a6cbf

Please sign in to comment.