You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
1.2 KiB
35 lines
1.2 KiB
From dba98127443791ae02f2caee19f84f1c41dea654 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?V=C3=ADt=20Ondruch?= <vondruch@redhat.com>
|
|
Date: Tue, 7 Feb 2017 10:02:11 +0100
|
|
Subject: [PATCH] Some tests require network connectivity.
|
|
|
|
---
|
|
spec/acceptance/httpclient/httpclient_spec.rb | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/spec/acceptance/httpclient/httpclient_spec.rb b/spec/acceptance/httpclient/httpclient_spec.rb
|
|
index 5a367e9..dc1b128 100644
|
|
--- a/spec/acceptance/httpclient/httpclient_spec.rb
|
|
+++ b/spec/acceptance/httpclient/httpclient_spec.rb
|
|
@@ -182,7 +182,7 @@ describe "HTTPClient" do
|
|
end
|
|
end
|
|
|
|
- context 'httpclient streams response' do
|
|
+ context 'httpclient streams response', net_connect: true do
|
|
before do
|
|
WebMock.allow_net_connect!
|
|
WebMock.after_request(except: [:other_lib]) do |_, response|
|
|
@@ -199,7 +199,7 @@ describe "HTTPClient" do
|
|
end
|
|
end
|
|
|
|
- context 'credentials' do
|
|
+ context 'credentials', net_connect: true do
|
|
it 'are detected when manually specifying Authorization header' do
|
|
stub_request(:get, 'username:password@www.example.com').to_return(status: 200)
|
|
headers = {'Authorization' => 'Basic dXNlcm5hbWU6cGFzc3dvcmQ='}
|
|
--
|
|
2.11.0
|
|
|