We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 80c1e7e + 167b713 commit 66510a0Copy full SHA for 66510a0
test/rubygems/test_gem_rdoc.rb
@@ -5,8 +5,6 @@
5
require "rubygems/rdoc"
6
7
class TestGemRDoc < Gem::TestCase
8
- Gem::RDoc.load_rdoc
9
-
10
def setup
11
super
12
@@ -20,10 +18,16 @@ def setup
20
18
21
19
install_gem @a
22
23
- @hook = Gem::RDoc.new @a
+ hook_class = if defined?(RDoc::RubyGemsHook)
+ RDoc::RubyGemsHook
+ else
24
+ Gem::RDoc
25
+ end
26
+
27
+ @hook = hook_class.new @a
28
29
begin
30
+ hook_class.load_rdoc
31
rescue Gem::DocumentError => e
32
pend e.message
33
end
0 commit comments