File: autopkgtest.patch

package info (click to toggle)
asciidoctor 2.0.26-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,464 kB
  • sloc: ruby: 45,298; sh: 147; xml: 53; javascript: 48; makefile: 26; ml: 1
file content (61 lines) | stat: -rw-r--r-- 1,834 bytes parent folder | download | duplicates (3)
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
Description: Fix tests under autopkgtest
Author: Antonio Terceiro <terceiro@debian.org>
Origin: vendor
Forwarded: not-needed
Last-Update: 2022-12-26
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/test/invoker_test.rb
+++ b/test/invoker_test.rb
@@ -1,6 +1,6 @@
 # frozen_string_literal: false
 require_relative 'test_helper'
-require File.join Asciidoctor::LIB_DIR, 'asciidoctor/cli'
+require 'asciidoctor/cli'
 
 context 'Invoker' do
   test 'should allow Options to be passed as first argument of constructor' do
--- a/test/options_test.rb
+++ b/test/options_test.rb
@@ -1,6 +1,6 @@
 # frozen_string_literal: true
 require_relative 'test_helper'
-require File.join Asciidoctor::LIB_DIR, 'asciidoctor/cli/options'
+require 'asciidoctor/cli/options'
 
 context 'Options' do
   test 'should print usage and return error code 0 when help flag is present' do
--- a/test/test_helper.rb
+++ b/test/test_helper.rb
@@ -4,8 +4,7 @@ ASCIIDOCTOR_LIB_DIR = ENV['ASCIIDOCTOR_L
 
 require 'simplecov' if ENV['COVERAGE'] == 'true'
 
-require File.join ASCIIDOCTOR_LIB_DIR, 'asciidoctor'
-Dir.chdir Asciidoctor::ROOT_DIR
+require 'asciidoctor'
 
 require 'nokogiri'
 # NOTE rouge has all sorts of warnings we don't want to see, so silence them
--- a/features/step_definitions.rb
+++ b/features/step_definitions.rb
@@ -5,8 +5,7 @@ ASCIIDOCTOR_LIB_DIR = ENV['ASCIIDOCTOR_L
 
 require 'simplecov' if ENV['COVERAGE'] == 'true'
 
-require File.join ASCIIDOCTOR_LIB_DIR, 'asciidoctor'
-Dir.chdir Asciidoctor::ROOT_DIR
+require 'asciidoctor'
 
 require 'minitest'
 require 'tilt'
--- a/test/converter_test.rb
+++ b/test/converter_test.rb
@@ -1,6 +1,7 @@
 # frozen_string_literal: true
 require_relative 'test_helper'
 require 'tilt' unless defined? Tilt.new
+require 'uri'
 
 context 'Converter' do
   context 'View options' do