Disable tests using network

Closes: #818460
parent 38a9e323
Description: Disable the tests accessing the network
Author: Matthias Klose <doko@ubuntu.com>
Origin: vendor
Forwarded: not-needed
Index: ruby-http/spec/lib/http/client_spec.rb
===================================================================
--- ruby-http.orig/spec/lib/http/client_spec.rb
+++ ruby-http/spec/lib/http/client_spec.rb
@@ -87,7 +87,7 @@ RSpec.describe HTTP::Client do
end
context "with non-ASCII URLs" do
- it "theoretically works like a charm" do
+ xit "theoretically works like a charm" do
client = StubbedClient.new(:follow => true).stub(
"http://example.com/" => redirect_response("/könig"),
"http://example.com/könig" => simple_response("OK")
@@ -96,7 +96,7 @@ RSpec.describe HTTP::Client do
expect { client.get "http://example.com/könig" }.not_to raise_error
end
- it "works like a charm in real world" do
+ xit "works like a charm in real world" do
url = "http://git.io/jNeY"
client = HTTP.follow
expect(client.get(url).to_s).to include "support for non-ascii URIs"
@@ -172,12 +172,12 @@ RSpec.describe HTTP::Client do
describe "#request" do
context "with non-ASCII URLs" do
- it "theoretically works like a charm" do
+ xit "theoretically works like a charm" do
client = described_class.new
expect { client.get "#{dummy.endpoint}/könig" }.not_to raise_error
end
- it "works like a charm in real world" do
+ xit "works like a charm in real world" do
url = "https://github.com/httprb/http.rb/pull/197/ö無"
client = HTTP.follow
expect(client.get(url).to_s).to include "support for non-ascii URIs"
@@ -188,7 +188,7 @@ RSpec.describe HTTP::Client do
let(:headers) { {"Host" => "another.example.com"} }
let(:client) { described_class.new :headers => headers }
- it "keeps `Host` header as is" do
+ xit "keeps `Host` header as is" do
expect(client).to receive(:perform) do |req, _|
expect(req["Host"]).to eq "another.example.com"
end
Index: ruby-http/spec/lib/http_spec.rb
===================================================================
--- ruby-http.orig/spec/lib/http_spec.rb
+++ ruby-http/spec/lib/http_spec.rb
@@ -259,16 +259,16 @@ RSpec.describe HTTP do
context "with host only given" do
subject { HTTP.persistent host }
- it { is_expected.to be_an HTTP::Client }
- it { is_expected.to be_persistent }
+ xit { is_expected.to be_an HTTP::Client }
+ xit { is_expected.to be_persistent }
end
context "with host and block given" do
- it "returns last evaluation of last expression" do
+ xit "returns last evaluation of last expression" do
expect(HTTP.persistent(host) { :http }).to be :http
end
- it "auto-closes connection" do
+ xit "auto-closes connection" do
HTTP.persistent host do |client|
expect(client).to receive(:close).and_call_original
client.get("/repos/httprb/http.rb")
removing_simplecov_html.patch removing_simplecov_html.patch
disable-network-tests.patch
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment