File: Skip-test-using-internet.patch

package info (click to toggle)
ruby-html-proofer 5.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 22,524 kB
  • sloc: ruby: 4,389; sh: 8; makefile: 4; javascript: 1; php: 1
file content (94 lines) | stat: -rw-r--r-- 3,639 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
From: =?utf-8?q?C=C3=A9dric_Boutillier?= <boutil@debian.org>
Date: Sat, 16 Jul 2022 23:20:59 +0200
Subject: skip tests trying to access internet

Bug-Debian: https://bugs.debian.org/1004460
Last-Update: 2022-09-08
Forwarded:not-needed
---
 spec/html-proofer/command_spec.rb | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

--- a/spec/html-proofer/cli_spec.rb
+++ b/spec/html-proofer/cli_spec.rb
@@ -27,7 +27,7 @@ describe "CLI" do
     expect(output).to(match("failure"))
   end
 
-  it "works with as-links" do
+  xit "works with as-links" do
     output = make_bin("--as-links www.github.com,foofoofoo.biz")
     expect(output).to(match("1 failure"))
   end
@@ -44,7 +44,7 @@ describe "CLI" do
     expect(output).to(match("1 failure"))
   end
 
-  it "works with no-check-external-hash" do
+  xit "works with no-check-external-hash" do
     broken_hash_on_the_web = File.join(FIXTURES_DIR, "links", "broken_hash_on_the_web.html")
     output = make_bin("--no-check-external-hash #{broken_hash_on_the_web}")
     expect(output).to(match("successfully"))
@@ -110,7 +110,7 @@ describe "CLI" do
     expect(output).to(match("successfully"))
   end
 
-  it "works with extensions" do
+  xit "works with extensions" do
     external = File.join(FIXTURES_DIR, "links", "file.foo")
     output = make_bin("--extensions .foo #{external}")
     expect(output).to(match("1 failure"))
@@ -164,7 +164,7 @@ describe "CLI" do
     expect(output).to(match("failure"))
   end
 
-  it "works with ignore-status-codes" do
+  xit "works with ignore-status-codes" do
     broken = File.join(FIXTURES_DIR, "links", "404_link.html")
     output = make_bin("--ignore-status-codes 404 #{broken}")
     expect(output).to(match("successfully"))
@@ -188,7 +188,7 @@ describe "CLI" do
     expect(output).to(match("successfully"))
   end
 
-  it "works with only-4xx" do
+  xit "works with only-4xx" do
     broken_hash_on_the_web = File.join(FIXTURES_DIR, "links", "broken_hash_on_the_web.html")
     output = make_bin("--only-4xx #{broken_hash_on_the_web}")
     expect(output).to(match("successfully"))
@@ -219,13 +219,13 @@ describe "CLI" do
       expect(output).to(match(/failed/))
     end
 
-    it "has only one UA" do
+    xit "has only one UA" do
       http = make_bin(%|--typhoeus='{"verbose":true,"headers":{"User-Agent":"Mozilla/5.0 (Macintosh; My New User-Agent)"}}' --as-links https://linkedin.com|)
       expect(http.scan("User-Agent: Typhoeus").count).to(eq(0))
       expect(http.match(%r{User-Agent: Mozilla/5.0 \(Macintosh; My New User-Agent\)}i)).not_to(be_nil)
     end
 
-    it "supports hydra" do
+    xit "supports hydra" do
       http = make_bin(%(--hydra '{"max_concurrency": 5}' http://www.github.com --as-links))
       expect(http.scan("max_concurrency is invalid").count).to(eq(0))
       expect(http.scan("successfully").count).to(eq(1))
@@ -233,7 +233,7 @@ describe "CLI" do
   end
 
   context "when dealing with cache" do
-    it "basically works" do
+    xit "basically works" do
       new_time = Time.local(2022, 1, 6, 12, 0, 0)
       Timecop.freeze(new_time) do
         http = make_bin(%(--cache '{"timeframe": { "external": "1d"}}' http://www.github.com --as-links))
--- a/spec/html-proofer/reporter/terminal_spec.rb
+++ b/spec/html-proofer/reporter/terminal_spec.rb
@@ -82,7 +82,7 @@ describe "Reporter::Terminal" do
       expect(output).to(match(msg))
     end if ci? # ordering of files differs on CI machines
 
-    it "reports as-links accurately" do
+    xit "reports as-links accurately" do
       output = make_bin("--as-links www.github.com,http://asdadsadsasdadaf.biz/")
 
       msg = <<~MSG