[DRE-commits] [ruby-rack-google-analytics] 02/04: do not modify LOAD_PATH in test helper

Cédric Boutillier boutil at alioth.debian.org
Wed Sep 25 22:13:45 UTC 2013


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

boutil pushed a commit to branch master
in repository ruby-rack-google-analytics.

commit 85cb9ed4f3c4ed27fbf51bd02c67bddeb31b95fa
Author: Cédric Boutillier <boutil at debian.org>
Date:   Wed Sep 25 23:41:43 2013 +0200

    do not modify LOAD_PATH in test helper
---
 debian/patches/do_not_modify_load_path.patch |   16 ++++++++++++++++
 debian/patches/series                        |    1 +
 2 files changed, 17 insertions(+)

diff --git a/debian/patches/do_not_modify_load_path.patch b/debian/patches/do_not_modify_load_path.patch
new file mode 100644
index 0000000..4ff5d04
--- /dev/null
+++ b/debian/patches/do_not_modify_load_path.patch
@@ -0,0 +1,16 @@
+Description: do not modify $LOAD_PATH from within test/helper.rb
+Author: Cédric Boutillier <boutil at debian.org>
+Forwarded: not-needed
+Last-Update: 2013-09-25
+
+--- a/test/helper.rb
++++ b/test/helper.rb
+@@ -3,8 +3,6 @@
+ require 'shoulda'
+ require 'rack/test'
+ 
+-$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
+-$LOAD_PATH.unshift(File.dirname(__FILE__))
+ require 'rack/google-analytics'
+ 
+ class Test::Unit::TestCase
diff --git a/debian/patches/series b/debian/patches/series
index 53f3213..30a0d59 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 move_templates.patch
+do_not_modify_load_path.patch

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



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