diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-04-25 09:23:04 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-04-25 09:23:04 +0000 |
commit | 33f66084d5c60542939117d056bdcbb58f8100dc (patch) | |
tree | e4c9a1b96b9a8f58b47477522292cd94f1f948b8 /test/webrick | |
parent | 905d52772cae8d91ba09e8446a726649335247f9 (diff) | |
download | ruby-33f66084d5c60542939117d056bdcbb58f8100dc.tar.gz |
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
Diffstat (limited to 'test/webrick')
-rw-r--r-- | test/webrick/utils.rb | 2 |
1 files changed, 2 insertions, 0 deletions
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 |