File: no_loadpath_trick_in_tests.patch

package info (click to toggle)
ruby-github-markdown 0.6.9-2
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 276 kB
  • ctags: 325
  • sloc: ansic: 3,575; ruby: 96; makefile: 5
file content (15 lines) | stat: -rw-r--r-- 437 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Description: don't play with the LOAD_PATH variable
 let the interpreter find the github/markdown library by itself
 using system paths.
Author: Cédric Boutillier
Last-Update: 2015-04-27
Forwarded: not-needed
--- a/test/gfm_test.rb
+++ b/test/gfm_test.rb
@@ -1,6 +1,4 @@
 # coding: UTF-8
-rootdir = File.dirname(File.dirname(__FILE__))
-$LOAD_PATH.unshift "#{rootdir}/lib"
 
 if defined? Encoding
   Encoding.default_internal = 'UTF-8'