From 33f66084d5c60542939117d056bdcbb58f8100dc Mon Sep 17 00:00:00 2001 From: hsbt Date: Tue, 25 Apr 2017 09:23:04 +0000 Subject: Import gemspec Import gemspec and test file from ruby/webrick. * webrick.gemspec: Update files and dependency for standalone gem. * test/webrick/utils.rb: Added explicitly loading of EnvUtil for test suite without ruby core test suite. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58473 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/webrick/utils.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/webrick/utils.rb') diff --git a/test/webrick/utils.rb b/test/webrick/utils.rb index 92353908be..cc231f07e8 100644 --- a/test/webrick/utils.rb +++ b/test/webrick/utils.rb @@ -15,6 +15,7 @@ module TestWEBrick class WEBrick::HTTPServlet::CGIHandler remove_const :Ruby + require "envutil" unless defined?(EnvUtil) Ruby = EnvUtil.rubybin remove_const :CGIRunner CGIRunner = "\"#{Ruby}\" \"#{WEBrick::Config::LIBDIR}/httpservlet/cgi_runner.rb\"" # :nodoc: @@ -26,6 +27,7 @@ module TestWEBrick RubyBin << " \"-I#{File.dirname(EnvUtil.rubybin)}/.ext/common\"" RubyBin << " \"-I#{File.dirname(EnvUtil.rubybin)}/.ext/#{RUBY_PLATFORM}\"" + require "test/unit" unless defined?(Test::Unit) include Test::Unit::Assertions extend Test::Unit::Assertions -- cgit v1.2.3