Skip to content

Commit 182bcf9

Browse files
committed
removed unused blank lines and revert test
1 parent ee289f4 commit 182bcf9

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

lib/rdoc/rubygems_hook.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# frozen_string_literal: true
2-
32
require 'rubygems/user_interaction'
43
require 'fileutils'
5-
64
require_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

test/rdoc/test_rdoc_rubygems_hook.rb

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,9 @@
22
require 'rubygems'
33
require 'fileutils'
44
require 'tmpdir'
5+
require_relative '../../lib/rdoc/rubygems_hook'
56
require '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-
158
class 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

0 commit comments

Comments
 (0)