File: 04-fix-tests-path.patch

package info (click to toggle)
ruby-json 2.0.1%2Bdfsg-3%2Bdeb9u1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,092 kB
  • sloc: javascript: 3,477; ansic: 3,294; java: 3,132; ruby: 2,683; sh: 37; makefile: 4
file content (21 lines) | stat: -rw-r--r-- 535 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
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/test_helper.rb
+++ b/tests/test_helper.rb
@@ -2,13 +2,10 @@ gem 'json', File.read('VERSION').chomp
 
 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