зеркало из https://github.com/github/ruby.git
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:
Родитель
9d72f26584
Коммит
26e9234309
|
@ -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\""
|
||||
|
|
Загрузка…
Ссылка в новой задаче