1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
naruse 2013-04-18 13:56:09 +00:00
parent 9d72f26584
commit 26e9234309

View file

@ -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\""