[DRE-commits] [ruby-http] 01/02: Disable tests using network
zeha at debian.org
zeha at debian.org
Sun May 1 20:04:18 UTC 2016
This is an automated email from the git hooks/post-receive script.
zeha pushed a commit to branch master
in repository ruby-http.
commit 1e9fe0020a036df017994b20fe03eb1ba6cf2a30
Author: Christian Hofstaedtler <zeha at debian.org>
Date: Sun May 1 19:54:31 2016 +0000
Disable tests using network
Closes: #818460
---
debian/patches/disable-network-tests.patch | 76 ++++++++++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 77 insertions(+)
diff --git a/debian/patches/disable-network-tests.patch b/debian/patches/disable-network-tests.patch
new file mode 100644
index 0000000..8917ce2
--- /dev/null
+++ b/debian/patches/disable-network-tests.patch
@@ -0,0 +1,76 @@
+Description: Disable the tests accessing the network
+Author: Matthias Klose <doko at 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")
diff --git a/debian/patches/series b/debian/patches/series
index c34c576..598c66a 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
removing_simplecov_html.patch
+disable-network-tests.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-http.git
More information about the Pkg-ruby-extras-commits
mailing list