[DRE-commits] [ruby-peach] 03/04: add dont_read_lib_from_tests.patch to let Ruby determine where the files are located instead of hardcoding relative path in tests

Cédric Boutillier boutil at moszumanska.debian.org
Sat Oct 18 23:14:36 UTC 2014


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

boutil pushed a commit to branch master
in repository ruby-peach.

commit 6b7141b97bfdcd7ff91c068f1d4338be235d8c68
Author: Cédric Boutillier <boutil at debian.org>
Date:   Sun Oct 19 01:08:08 2014 +0200

    add dont_read_lib_from_tests.patch to let Ruby determine where the files are located instead of hardcoding relative path in tests
---
 debian/patches/dont_read_lib_from_tests.patch | 25 +++++++++++++++++++++++++
 debian/patches/series                         |  1 +
 2 files changed, 26 insertions(+)

diff --git a/debian/patches/dont_read_lib_from_tests.patch b/debian/patches/dont_read_lib_from_tests.patch
new file mode 100644
index 0000000..b0a8376
--- /dev/null
+++ b/debian/patches/dont_read_lib_from_tests.patch
@@ -0,0 +1,25 @@
+Description: don't try to read files from lib/ directly in tests
+ let ruby determine where the needed files should be
+Author: Cédric Boutillier <boutil at debian.org>
+Last-Update: 2014-10-18
+
+--- a/test/test_helper.rb
++++ b/test/test_helper.rb
+@@ -1,7 +1,3 @@
+-$:.unshift(File.dirname(__FILE__) + '/../lib')
+-$:.unshift(File.dirname(__FILE__)) unless 
+-  $:.include?(File.dirname(__FILE__)) || 
+-    $:.include?(File.expand_path(File.dirname(__FILE__)))
+ 
+ require 'rubygems'
+ require 'test/unit'
+--- a/test/peach_test.rb
++++ b/test/peach_test.rb
+@@ -1,6 +1,6 @@
+ require File.join(File.dirname(__FILE__), "test_helper")
+ 
+-require File.join(File.dirname(__FILE__), "..", "lib", "peach")
++require "peach"
+ 
+ require 'thread'
+ 
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..0b41ea5
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+dont_read_lib_from_tests.patch

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



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