File: Skip-test-using-internet.patch

package info (click to toggle)
ruby-html-proofer 3.19.2-7
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,932 kB
  • sloc: ruby: 3,304; sh: 8; makefile: 4; php: 1; javascript: 1
file content (48 lines) | stat: -rw-r--r-- 1,712 bytes parent folder | download | duplicates (2)
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
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(-)

diff --git a/spec/html-proofer/command_spec.rb b/spec/html-proofer/command_spec.rb
index 2a561a9..f6d635f 100644
--- a/spec/html-proofer/command_spec.rb
+++ b/spec/html-proofer/command_spec.rb
@@ -3,12 +3,12 @@
 require 'spec_helper'
 
 describe 'Command test' do
-  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
 
-  it 'works with alt-ignore' do
+  xit 'works with alt-ignore' do
     ignorable_links = "#{FIXTURES_DIR}/images/ignorable_alt_via_options.html"
     output = make_bin("--alt-ignore /wikimedia/,gpl.png #{ignorable_links}")
     expect(output).to match('successfully')
@@ -39,7 +39,7 @@ describe 'Command test' do
     expect(output).to match('successfully')
   end
 
-  it 'works with extension' do
+  xit 'works with extension' do
     external = "#{FIXTURES_DIR}/links/file.foo"
     output = make_bin("--extension .foo #{external}")
     expect(output).to match('1 failure')
@@ -76,7 +76,7 @@ describe 'Command test' do
     expect(output).to match('successfully')
   end
 
-  it 'works with only-4xx' do
+  xit 'works with only-4xx' do
     broken_hash_on_the_web = "#{FIXTURES_DIR}/links/broken_hash_on_the_web.html"
     output = make_bin("--only-4xx #{broken_hash_on_the_web}")
     expect(output).to match('successfully')