summaryrefslogtreecommitdiff
path: root/spec/bundler/fetcher
diff options
context:
space:
mode:
Diffstat (limited to 'spec/bundler/fetcher')
-rw-r--r--spec/bundler/fetcher/downloader_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/bundler/fetcher/downloader_spec.rb b/spec/bundler/fetcher/downloader_spec.rb
index 8b26b8e415..4dcd94b1b2 100644
--- a/spec/bundler/fetcher/downloader_spec.rb
+++ b/spec/bundler/fetcher/downloader_spec.rb
@@ -222,7 +222,7 @@ RSpec.describe Bundler::Fetcher::Downloader do
it "should raise a Bundler::HTTPError" do
expect { subject.request(uri, options) }.to raise_error(Bundler::HTTPError,
- "Network error while fetching http://www.uri-to-fetch.com/api/v2/endpoint")
+ "Network error while fetching http://www.uri-to-fetch.com/api/v2/endpoint (other error about network)")
end
context "when the there are credentials provided in the request" do
@@ -233,7 +233,7 @@ RSpec.describe Bundler::Fetcher::Downloader do
it "should raise a Bundler::HTTPError that doesn't contain the password" do
expect { subject.request(uri, options) }.to raise_error(Bundler::HTTPError,
- "Network error while fetching http://username@www.uri-to-fetch.com/api/v2/endpoint")
+ "Network error while fetching http://username@www.uri-to-fetch.com/api/v2/endpoint (other error about network)")
end
end
end
@@ -243,7 +243,7 @@ RSpec.describe Bundler::Fetcher::Downloader do
it "should raise a Bundler::Fetcher::HTTPError" do
expect { subject.request(uri, options) }.to raise_error(Bundler::HTTPError,
- "Network error while fetching http://www.uri-to-fetch.com/api/v2/endpoint")
+ "Network error while fetching http://www.uri-to-fetch.com/api/v2/endpoint (#{message})")
end
end
end