From 26e9234309f79fa6bf358dc8b4087916c9488950 Mon Sep 17 00:00:00 2001 From: naruse Date: Thu, 18 Apr 2013 13:56:09 +0000 Subject: [PATCH] Overwrite Ruby's path for cgi in tests git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40355 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/webrick/utils.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/webrick/utils.rb b/test/webrick/utils.rb index 15852ca47d..10bd7a995b 100644 --- a/test/webrick/utils.rb +++ b/test/webrick/utils.rb @@ -13,6 +13,13 @@ module TestWEBrick return self end + class WEBrick::HTTPServlet::CGIHandler + remove_const :Ruby + Ruby = EnvUtil.rubybin + remove_const :CGIRunner + CGIRunner = "\"#{Ruby}\" \"#{WEBrick::Config::LIBDIR}/httpservlet/cgi_runner.rb\"" # :nodoc: + end + RubyBin = "\"#{EnvUtil.rubybin}\"" RubyBin << " --disable-gems" RubyBin << " \"-I#{File.expand_path("../..", File.dirname(__FILE__))}/lib\""