diff options
Diffstat (limited to 'test/webrick')
-rw-r--r-- | test/webrick/test_cgi.rb | 7 |
1 files changed, 7 insertions, 0 deletions
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. |