File: 04-fix-tests-path.patch

package info (click to toggle)
ruby-json 1.8.1-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,052 kB
  • ctags: 1,122
  • sloc: java: 3,398; ansic: 3,332; ruby: 2,784; makefile: 2
file content (19 lines) | stat: -rw-r--r-- 495 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: Let debian/ruby-tests.rb handle the test suite loading
 Was causing FTBFS because ext was loaded.
Origin: vendor
Author: Lucas Nussbaum <lucas@debian.org>
Bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=634438
--- a/tests/setup_variant.rb
+++ b/tests/setup_variant.rb
@@ -1,11 +1,8 @@
 case ENV['JSON']
 when 'pure'
-  $:.unshift 'lib'
   require 'json/pure'
 when 'ext'
-  $:.unshift 'ext', 'lib'
   require 'json/ext'
 else
-  $:.unshift 'ext', 'lib'
   require 'json'
 end