File: 01_dont_mess_with_loadpath.patch

package info (click to toggle)
ruby-oj 3.16.12-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 14,192 kB
  • sloc: ansic: 19,659; ruby: 11,750; sh: 70; makefile: 17
file content (19 lines) | stat: -rw-r--r-- 428 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: do not mess with $LOAD_PATH
 this is not at all needed for the tests
Author: Cédric Boutillier <boutil@debian.org>
Forwarded: not-needed
Last-Update: 2017-09-30

--- a/test/helper.rb
+++ b/test/helper.rb
@@ -6,10 +6,6 @@
 
 $VERBOSE = true
 
-%w(lib ext test).each do |dir|
-  $LOAD_PATH.unshift File.expand_path("../../#{dir}", __FILE__)
-end
-
 require 'minitest'
 require 'minitest/autorun'
 require 'stringio'