File: disable-network-tests.patch

package info (click to toggle)
ruby-http 1.0.2-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 520 kB
  • ctags: 322
  • sloc: ruby: 3,934; makefile: 8
file content (76 lines) | stat: -rw-r--r-- 3,088 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
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")