aboutsummaryrefslogtreecommitdiffstats
path: root/test/webrick/utils.rb
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-12 17:00:51 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-12 17:00:51 +0000
commit6bbed0e31b1d32808443b3dd3e451aad28d46096 (patch)
treea4b8e71ae84ea8515f5eb9116e5a4d44b0c6e50c /test/webrick/utils.rb
parent945b604e3adc16aaf421a6df80d40a00a70a9226 (diff)
downloadruby-6bbed0e31b1d32808443b3dd3e451aad28d46096.tar.gz
* test: use require_relative.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24878 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/webrick/utils.rb')
-rw-r--r--test/webrick/utils.rb8
1 files changed, 1 insertions, 7 deletions
diff --git a/test/webrick/utils.rb b/test/webrick/utils.rb
index 82df9cde69..ebc936cb2c 100644
--- a/test/webrick/utils.rb
+++ b/test/webrick/utils.rb
@@ -1,10 +1,4 @@
-begin
- loadpath = $:.dup
- $:.replace($: | [File.expand_path("../ruby", File.dirname(__FILE__))])
- require 'envutil'
-ensure
- $:.replace(loadpath)
-end
+require_relative '../ruby/envutil'
require "webrick"
begin
require "webrick/https"