aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-04-25 09:23:04 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-04-25 09:23:04 +0000
commite0fe5a6b34a2a82c198d6ef2985cc48e5019f62c (patch)
treee4c9a1b96b9a8f58b47477522292cd94f1f948b8 /test
parentcb6be8f33e300e38c7a6ff8503c53cfc601980ba (diff)
downloadruby-e0fe5a6b34a2a82c198d6ef2985cc48e5019f62c.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')
-rw-r--r--test/webrick/utils.rb2
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