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:
parent
9d72f26584
commit
26e9234309
1 changed files with 7 additions and 0 deletions
|
@ -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\""
|
||||
|
|
Loading…
Reference in a new issue