File: 0005-No-require_relative-to-load-roxml.patch

package info (click to toggle)
ruby-roxml 4.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 800 kB
  • sloc: ruby: 4,133; xml: 1,013; makefile: 7
file content (57 lines) | stat: -rw-r--r-- 1,721 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
From: Cédric Boutillier <boutil@debian.org>
Date: Mon, 4 Dec 2017 21:48:45 +0100
Subject: No require_relative to load roxml

---
 spec/spec_helper.rb        | 2 +-
 test/mocks/dictionaries.rb | 4 ++--
 test/mocks/mocks.rb        | 4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index cc651f6..2865eca 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -5,7 +5,7 @@ require 'ostruct'
 require 'rspec/matchers' # req by equivalent-xml custom matcher `be_equivalent_to`
 
 require_relative './../test/support/fixtures'
-require_relative './../lib/roxml'
+require 'roxml'
 require_relative './shared_specs'
 
 def xml_for(name)
diff --git a/test/mocks/dictionaries.rb b/test/mocks/dictionaries.rb
index fc1fe67..fa07154 100644
--- a/test/mocks/dictionaries.rb
+++ b/test/mocks/dictionaries.rb
@@ -1,4 +1,4 @@
-require_relative "./../../lib/roxml"
+require "roxml"
 
 class DictionaryOfAttrs
   include ROXML
@@ -54,4 +54,4 @@ class DictionaryOfAttrNameClashes
   xml_name :dictionary
   xml_reader :definitions, :as => {:key => '@name',
                             :value => 'content'}, :from => :definition
-end
\ No newline at end of file
+end
diff --git a/test/mocks/mocks.rb b/test/mocks/mocks.rb
index 1121f34..b70a6b8 100644
--- a/test/mocks/mocks.rb
+++ b/test/mocks/mocks.rb
@@ -1,4 +1,4 @@
-require_relative "./../../lib/roxml"
+require "roxml"
 
 class Muffins
   include ROXML
@@ -276,4 +276,4 @@ class PersonWithMotherOrMissing
   xml_reader :age, :from => :attr, :else => 21
   xml_reader :name, :else => 'Anonymous'
   xml_reader :mother,:as => PersonWithMotherOrMissing, :else => Person.blank
-end
\ No newline at end of file
+end