File: do_not_modify_loadpath_in_tests.patch

package info (click to toggle)
ruby-augeas 1%3A0.5.0%2Bgem-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 236 kB
  • sloc: ruby: 309; ansic: 305; makefile: 4
file content (19 lines) | stat: -rw-r--r-- 531 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: do not override Ruby $LOAD_PATH in tests
 doing this will load the extension built for the wrong Ruby version
Author: Cédric Boutillier <boutil@debian.org>
Bug-Debian: http://bugs.debian.org/725532
Last-Update: 2013-10-28
Forwarded: not-needed

--- a/tests/tc_augeas.rb
+++ b/tests/tc_augeas.rb
@@ -2,9 +2,6 @@
 
 TOPDIR = File::expand_path(File::join(File::dirname(__FILE__), ".."))
 
-$:.unshift(File::join(TOPDIR, "lib"))
-$:.unshift(File::join(TOPDIR, "ext", "augeas"))
-
 require 'augeas'
 require 'fileutils'