From bea93efc42f1e50e759888e53dbcd1ec624d3d80 Mon Sep 17 00:00:00 2001 From: usa Date: Wed, 22 Feb 2006 07:27:20 +0000 Subject: * test/webrick/test_cgi.rb: should support platforms which search library path from the interpreter's path. And, support test without install incidentally. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9983 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/webrick/test_cgi.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test/webrick') diff --git a/test/webrick/test_cgi.rb b/test/webrick/test_cgi.rb index 7e3f4ee5f0..c71f18c53b 100644 --- a/test/webrick/test_cgi.rb +++ b/test/webrick/test_cgi.rb @@ -17,6 +17,13 @@ class TestWEBrickCGI < Test::Unit::TestCase :CGIInterpreter => EnvUtil.rubybin, :DocumentRoot => File.dirname(__FILE__), :DirectoryIndex => ["webrick.cgi"], + :RequestHandler => Proc.new{|req, res| + def req.meta_vars + meta = super + meta["RUBYLIB"] = $:.join(File::PATH_SEPARATOR) + return meta + end + }, } if RUBY_PLATFORM =~ /mswin32|mingw|cygwin|bccwin32/ config[:CGIPathEnv] = ENV['PATH'] # runtime dll may not be in system dir. -- cgit v1.2.3