Skip to content

Commit

Permalink
Remove non-required dirs from $LOAD_PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
luislavena committed Jan 8, 2012
1 parent d86b169 commit 9470937
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
1 change: 0 additions & 1 deletion lib/puma.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

# Standard libraries
require 'socket'
require 'tempfile'
Expand Down
7 changes: 4 additions & 3 deletions test/testhelp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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)
Expand Down

0 comments on commit 9470937

Please sign in to comment.