File: 0001-loadpath-in-tests.patch

package info (click to toggle)
ruby-ffi-rzmq 2.0.6-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 404 kB
  • sloc: ruby: 2,967; sh: 21; makefile: 2
file content (15 lines) | stat: -rw-r--r-- 388 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Description: don't use relative path to require the lib
 otherwise autopkgtests fail as lib/ is removed
Author: Cédric Boutillier <boutil@debian.org>
Last-Update: 2018-08-19

--- 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]))
+require 'ffi-rzmq'
 
 Thread.abort_on_exception = true