diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-02-22 07:27:20 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-02-22 07:27:20 +0000 |
commit | 4fcd14efdba33bd3cf0f9c14e1a16aab64b4766f (patch) | |
tree | ead5b9d181a375a1ff0e5656dacbf790db9b9aa0 | |
parent | 51cb567d6db323c4ec93b2d46b5fb94673bfa8a1 (diff) | |
download | ruby-4fcd14efdba33bd3cf0f9c14e1a16aab64b4766f.tar.gz ruby-4fcd14efdba33bd3cf0f9c14e1a16aab64b4766f.tar.xz ruby-4fcd14efdba33bd3cf0f9c14e1a16aab64b4766f.zip |
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@9983 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | test/webrick/test_cgi.rb | 7 |
2 files changed, 13 insertions, 0 deletions
@@ -1,3 +1,9 @@ +Wed Feb 22 16:24:05 2006 NAKAMURA Usaku <usa@ruby-lang.org> + + * test/webrick/test_cgi.rb: should support platforms which search + library path from the interpreter's path. + And, support test without install incidentally. + Wed Feb 22 14:21:03 2006 Yukihiro Matsumoto <matz@ruby-lang.org> * bignum.c (bignorm): x may not be a bignum. [ruby-dev:28367] diff --git a/test/webrick/test_cgi.rb b/test/webrick/test_cgi.rb index 7e3f4ee5f..c71f18c53 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. |