diff options
author | Vít Ondruch <[email protected]> | 2021-09-01 18:48:10 +0200 |
---|---|---|
committer | git <[email protected]> | 2021-09-03 19:12:24 +0900 |
commit | 33676a7aa6a9f10c72a811f4b6b6ad08958f2bca (patch) | |
tree | 335cfe4bfd54e8292baf4f88ed548d5f40f0f54a /test/rdoc/test_rdoc_servlet.rb | |
parent | b809e5a4a98cf73f80e96c16c9a0c6f3da332dc5 (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/rdoc/test_rdoc_servlet.rb')
-rw-r--r-- | test/rdoc/test_rdoc_servlet.rb | 4 |
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 |