Package: ruby-rack-google-analytics / 1.2.0-2.1

do_not_modify_load_path.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Description: do not modify $LOAD_PATH from within test/helper.rb
Author: C├ędric Boutillier <boutil@debian.org>
Forwarded: not-needed
Last-Update: 2013-09-25

--- a/test/helper.rb
+++ b/test/helper.rb
@@ -3,11 +3,8 @@
 require 'shoulda'
 require 'rack/test'
 require 'active_support/core_ext/hash/slice'
-require File.expand_path('../../lib/rack/google-analytics', __FILE__)
-require File.expand_path('../../lib/tracking/event', __FILE__)
-
-$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
-$LOAD_PATH.unshift(File.dirname(__FILE__))
+require 'rack/google-analytics'
+require 'tracking/event'
 
 class Test::Unit::TestCase
   include Rack::Test::Methods