File tree Expand file tree Collapse file tree 2 files changed +3
-12
lines changed
Expand file tree Collapse file tree 2 files changed +3
-12
lines changed Original file line number Diff line number Diff line change 11# frozen_string_literal: true
2-
32require 'rubygems/user_interaction'
43require 'fileutils'
5-
64require_relative '../rdoc'
75
86# We define the following two similar name classes in this file:
@@ -284,7 +282,7 @@ def remove
284282 # Do nothing if this is NOT a default gem.
285283 return unless self . class . default_gem?
286284
287- # Remove generate document for compatibility if this is a
285+ # Remove generated document for compatibility if this is a
288286 # default gem.
289287 RubyGemsHook . new ( @spec ) . remove
290288 end
Original file line number Diff line number Diff line change 22require 'rubygems'
33require 'fileutils'
44require 'tmpdir'
5+ require_relative '../../lib/rdoc/rubygems_hook'
56require 'test/unit'
67
7- # This test requires lib/rubygems_plugin.rb .
8- # To execute this test under a ruby-core, lib/rubygems_plugin.rb should be synced to ruby/ruby.
9- # But I don't do so and skip this test under the situation because of avoiding ambiguity about rubygems_plugins on ruby/ruby.
10- begin
11- require_relative '../../lib/rubygems_plugin'
12- rescue LoadError
13- end
14-
158class TestRDocRubyGemsHook < Test ::Unit ::TestCase
169 def setup
1710 @a = Gem ::Specification . new do |s |
@@ -291,4 +284,4 @@ def test_setup_unwritable
291284 end
292285 end
293286
294- end if defined? ( RDoc :: RubyGemsHook )
287+ end
You can’t perform that action at this time.
0 commit comments