summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorVít Ondruch <vondruch@redhat.com>2021-09-01 18:48:10 +0200
committergit <svn-admin@ruby-lang.org>2021-09-03 19:12:24 +0900
commit33676a7aa6a9f10c72a811f4b6b6ad08958f2bca (patch)
tree335cfe4bfd54e8292baf4f88ed548d5f40f0f54a /test
parentb809e5a4a98cf73f80e96c16c9a0c6f3da332dc5 (diff)
[ruby/rdoc] Try to load WEBrick for testing
This is in similar vein Rake is optionally loaded in: https://github.com/ruby/rdoc/blob/5437418baf8eeb984fe7e74b181d3da1b174d0f7/test/rdoc/test_rdoc_task.rb#L3-L6 https://github.com/ruby/rdoc/commit/5f3901ae60
Diffstat (limited to 'test')
-rw-r--r--test/rdoc/test_rdoc_servlet.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/rdoc/test_rdoc_servlet.rb b/test/rdoc/test_rdoc_servlet.rb
index c41c2c8ae7..7a5b15a6eb 100644
--- a/test/rdoc/test_rdoc_servlet.rb
+++ b/test/rdoc/test_rdoc_servlet.rb
@@ -1,5 +1,9 @@
# frozen_string_literal: true
require_relative 'helper'
+begin
+ require 'webrick'
+rescue LoadError
+end
class TestRDocServlet < RDoc::TestCase