[DRE-commits] [ruby-loofah] 06/10: fix require in test/helper.rb

Cédric Boutillier boutil at moszumanska.debian.org
Fri Apr 24 15:12:01 UTC 2015


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

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

commit 4216270cd108d3ab3bf588a99495f5e4d1116d07
Author: Cédric Boutillier <boutil at debian.org>
Date:   Fri Apr 24 16:59:37 2015 +0200

    fix require in test/helper.rb
---
 debian/patches/dont_require_lib_files.patch | 21 +++++++++++++++++++++
 debian/patches/series                       |  1 +
 2 files changed, 22 insertions(+)

diff --git a/debian/patches/dont_require_lib_files.patch b/debian/patches/dont_require_lib_files.patch
new file mode 100644
index 0000000..f6b0e85
--- /dev/null
+++ b/debian/patches/dont_require_lib_files.patch
@@ -0,0 +1,21 @@
+Description: don't require files in tests using relative paths to lib/
+ Let the Ruby interpreter find the files using the LOAD_PATH
+Author: Cédric Boutillier <boutil at debian.org>
+Forwarded: no
+Last-Update: 2015-04-24
+
+--- a/test/helper.rb
++++ b/test/helper.rb
+@@ -4,10 +4,10 @@
+ require 'minitest/autorun'
+ require 'rr'
+ 
+-require File.expand_path(File.join(File.dirname(__FILE__), "..", "lib", "loofah"))
++require "loofah"
+ 
+ # require the ActionView helpers here, since they are no longer required automatically
+-require File.expand_path(File.join(File.dirname(__FILE__), "..", "lib", "loofah", "helpers"))
++require "loofah/helpers"
+ 
+ puts "=> testing with Nokogiri #{Nokogiri::VERSION_INFO.inspect}"
+ 
diff --git a/debian/patches/series b/debian/patches/series
index b8e6dcc..49b00fe 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 deactivate_whitewash_tests.patch
+dont_require_lib_files.patch

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



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