[DRE-commits] [ruby-prawn-table] 02/04: no_require_relative_in_specs.patch for debci

Cédric Boutillier boutil at moszumanska.debian.org
Sat May 2 21:44:29 UTC 2015


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

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

commit 18b0d3434a24cea9bfdd24e54e1cebde188b4ce9
Author: Cédric Boutillier <boutil at debian.org>
Date:   Sat May 2 23:36:46 2015 +0200

    no_require_relative_in_specs.patch for debci
---
 debian/patches/no_require_relative_in_specs.patch | 30 +++++++++++++++++++++++
 debian/patches/series                             |  1 +
 2 files changed, 31 insertions(+)

diff --git a/debian/patches/no_require_relative_in_specs.patch b/debian/patches/no_require_relative_in_specs.patch
new file mode 100644
index 0000000..0db2708
--- /dev/null
+++ b/debian/patches/no_require_relative_in_specs.patch
@@ -0,0 +1,30 @@
+Description: do not use require_relative in specs
+ Use instead require, and let the interpreter find the lib
+ The tests should not rely on the presence of the lib/ directory for
+ autopkgtest purposes.
+Author: Cédric Boutillier <boutil at debian.org>
+Forwarded: no
+Last-Update: 2015-05-02
+
+--- a/spec/cell_spec.rb
++++ b/spec/cell_spec.rb
+@@ -1,7 +1,7 @@
+ # encoding: utf-8
+ 
+ require File.join(File.expand_path(File.dirname(__FILE__)), "spec_helper")
+-require_relative "../lib/prawn/table"
++require "prawn/table"
+ 
+ module CellHelpers
+ 
+--- a/spec/table_spec.rb
++++ b/spec/table_spec.rb
+@@ -6,7 +6,7 @@
+ 
+ require File.join(File.expand_path(File.dirname(__FILE__)), "spec_helper")
+ 
+-require_relative "../lib/prawn/table"
++require "prawn/table"
+ require 'set'
+ 
+ describe "Prawn::Table" do
diff --git a/debian/patches/series b/debian/patches/series
index 48e2598..98b7e54 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 clean_spec_helper.patch
+no_require_relative_in_specs.patch

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



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