[DRE-commits] [ruby-pygments.rb] 08/09: no relative path for require in tests

Cédric Boutillier boutil at moszumanska.debian.org
Sun Nov 26 21:11:30 UTC 2017


This is an automated email from the git hooks/post-receive script.

boutil pushed a commit to branch patch-queue/master
in repository ruby-pygments.rb.

commit 4d8ca86557165fd9ee26a87573e2a8dda22161ce
Author: Cédric Boutillier <boutil at debian.org>
Date:   Fri Jul 8 14:40:06 2016 +0200

    no relative path for require in tests
    
    Let the interpreter find the library with loadpath in tests
    So that the tests can be run with the installed package (autpkgtest)
    Forwarded: no
    
    Gbp-Pq: Name 0010-no-relative-path-for-require-in-tests.patch
---
 test/test_pygments.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/test_pygments.rb b/test/test_pygments.rb
index 23416ba..4dcdbff 100644
--- a/test/test_pygments.rb
+++ b/test/test_pygments.rb
@@ -2,7 +2,7 @@
 # frozen_string_literal: true
 
 require 'test/unit'
-require File.join(File.dirname(__FILE__), '..', '/lib/pygments.rb')
+require 'pygments'
 ENV['mentos-test'] = "yes"
 
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-pygments.rb.git



More information about the Pkg-ruby-extras-commits mailing list