[DRE-commits] [ruby-awesome-print] 01/02: Fix test failure under autopkgtest
zeha at debian.org
zeha at debian.org
Thu Sep 10 00:55:33 UTC 2015
This is an automated email from the git hooks/post-receive script.
zeha pushed a commit to branch master
in repository ruby-awesome-print.
commit 207a16ae8b7f62db010a635fa82bc41226fb585f
Author: Christian Hofstaedtler <zeha at debian.org>
Date: Thu Sep 10 00:44:50 2015 +0000
Fix test failure under autopkgtest
---
debian/patches/series | 1 +
debian/patches/tests-fix-absolute-require | 19 +++++++++++++++++++
2 files changed, 20 insertions(+)
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..3847a84
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+tests-fix-absolute-require
diff --git a/debian/patches/tests-fix-absolute-require b/debian/patches/tests-fix-absolute-require
new file mode 100644
index 0000000..77b6d45
--- /dev/null
+++ b/debian/patches/tests-fix-absolute-require
@@ -0,0 +1,19 @@
+Description: Fix absolute require of libary in tests
+ Tests can't rely on the library in the lib/ dir in the source package,
+ instead they must test the installed copy.
+Author: Christian Hofstaedtler <zeha at debian.org>
+Origin: Debian
+Forwarded: no
+Last-Update: 2015-09-10
+
+--- ruby-awesome-print-1.6.1.orig/spec/misc_spec.rb
++++ ruby-awesome-print-1.6.1/spec/misc_spec.rb
+@@ -49,7 +49,7 @@ describe "AwesomePrint" do
+
+ # Require different file name this time (lib/ap.rb vs. lib/awesome_print).
+ it "several require 'awesome_print' should do no harm" do
+- require File.expand_path(File.dirname(__FILE__) + '/../lib/ap')
++ require 'ap'
+ expect { rand.ai }.not_to raise_error
+ end
+
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-awesome-print.git
More information about the Pkg-ruby-extras-commits
mailing list