Skip to content

Commit 5f3901a

Browse files
authored
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
1 parent 5437418 commit 5f3901a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/rdoc/test_rdoc_servlet.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# frozen_string_literal: true
22
require_relative 'helper'
3+
begin
4+
require 'webrick'
5+
rescue LoadError
6+
end
37

48
class TestRDocServlet < RDoc::TestCase
59

0 commit comments

Comments
 (0)