File: 0003-loadpath-in-tests.patch

package info (click to toggle)
ruby-ffi-rzmq-core 1.0.7-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid, trixie
  • size: 192 kB
  • sloc: ruby: 524; makefile: 2
file content (23 lines) | stat: -rw-r--r-- 672 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
From: =?utf-8?q?C=C3=A9dric_Boutillier?= <boutil@debian.org>
Date: Wed, 10 Feb 2021 15:48:40 -0800
Subject: don't use relative path to require the lib

otherwise autopkgtests fail as lib/ is removed

Last-Update: 2018-08-19
---
 spec/spec_helper.rb | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index cfac40f..10edc22 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -1,6 +1,4 @@
-require File.expand_path(
-File.join(File.dirname(__FILE__), %w[.. lib ffi-rzmq-core]))
-
+require 'ffi-rzmq-core'
 require 'rspec'
 
 Dir[File.join(File.dirname(__FILE__), "support", "*.rb")].each do |support|