File: no_relative_path_in_require.patch

package info (click to toggle)
ruby-liquid 2.6.1-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 460 kB
  • ctags: 745
  • sloc: ruby: 4,166; makefile: 4
file content (18 lines) | stat: -rw-r--r-- 493 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: use LOAD_PATH to find the 'liquid' library
 instead of using a relative path.
 This should fix autopkgtest-pkg-ruby test suite
Author: Cédric Boutillier <boutil@debian.org>
Forwarded: no
Last-Update: 2014-10-14

--- a/test/test_helper.rb
+++ b/test/test_helper.rb
@@ -7,7 +7,7 @@
 rescue LoadError
   puts "Couldn't load ruby-debug. gem install ruby-debug if you need it."
 end
-require File.join(File.dirname(__FILE__), '..', 'lib', 'liquid')
+require 'liquid'
 
 
 module Test