File: 0007-spec_helper-drop-require_relative-to-lib-directory.patch

package info (click to toggle)
ruby-rmagick 4.2.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 7,800 kB
  • sloc: ansic: 18,754; ruby: 16,987; sh: 90; javascript: 38; makefile: 12
file content (25 lines) | stat: -rw-r--r-- 812 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
From: Antonio Terceiro <terceiro@debian.org>
Date: Tue, 12 Oct 2021 06:33:50 -0300
Subject: spec_helper: drop require_relative to lib directory

This makes it possible to run the test suite against the installed
packgae, and still just works in development due to how rspec works.
---
 spec/spec_helper.rb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index c000c15..9fa2da5 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -3,8 +3,8 @@ require_relative 'support/matchers'
 require_relative 'support/helpers'
 
 require 'pry'
-require_relative '../lib/rmagick'
-require_relative '../lib/rvg/rvg'
+require 'rmagick'
+require 'rvg/rvg'
 
 root_dir = File.expand_path('..', __dir__)
 IMAGES_DIR = File.join(root_dir, 'doc/ex/images')