File: 0012_no_require_relative.patch

package info (click to toggle)
jekyll 3.1.6%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 3,820 kB
  • ctags: 997
  • sloc: ruby: 10,045; sh: 145; xml: 59; makefile: 28
file content (18 lines) | stat: -rw-r--r-- 497 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: don't use require_relative for tests
 This lets the system find the needed library in the correct place according to
 LOAD_PATH and should fix autopkgtests
Author: Cédric Boutillier <boutil@debian.org>
Forwarded: no
Last-Update: 2016-06-05

--- a/test/helper.rb
+++ b/test/helper.rb
@@ -20,7 +20,7 @@
 require 'minitest/autorun'
 require 'minitest/reporters'
 require 'rspec/mocks'
-require_relative "../lib/jekyll.rb"
+require "jekyll"
 
 Jekyll.logger = Logger.new(StringIO.new)