Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions test/rubygems/test_gem_rdoc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
require "rubygems/rdoc"

class TestGemRDoc < Gem::TestCase
Gem::RDoc.load_rdoc

def setup
super

Expand All @@ -20,10 +18,16 @@ def setup

install_gem @a

@hook = Gem::RDoc.new @a
hook_class = if defined?(RDoc::RubyGemsHook)
RDoc::RubyGemsHook
else
Gem::RDoc
end

@hook = hook_class.new @a

begin
Gem::RDoc.load_rdoc
hook_class.load_rdoc
rescue Gem::DocumentError => e
pend e.message
end
Expand Down