Permalink
Browse files

Remove non-required dirs from $LOAD_PATH

  • Loading branch information...
1 parent d86b169 commit 9470937da9be165f716cd5aeb5bcfa5a38ed9838 @luislavena luislavena committed Jan 8, 2012
Showing with 4 additions and 4 deletions.
  1. +0 −1 lib/puma.rb
  2. +4 −3 test/testhelp.rb
View
@@ -1,4 +1,3 @@
-
# Standard libraries
require 'socket'
require 'tempfile'
View
@@ -2,8 +2,9 @@
# Copyright (c) 2005 Zed A. Shaw
-%w(lib ext bin test).each do |dir|
- $LOAD_PATH.unshift File.expand_path("../../#{dir}", __FILE__)
+%w(lib test).each do |d|
+ dir = File.expand_path("../../#{d}", __FILE__)
+ $LOAD_PATH.unshift dir unless $LOAD_PATH.include?(dir)
end
require 'rubygems'
@@ -18,7 +19,7 @@
def redirect_test_io
yield
end
-
+
# Either takes a string to do a get request against, or a tuple of [URI, HTTP] where
# HTTP is some kind of Net::HTTP request object (POST, HEAD, etc.)
def hit(uris)

0 comments on commit 9470937

Please sign in to comment.