Skip to content

Commit 7e84e91

Browse files
authored
Remove needless RDoc::Options from XrefTestCase (#1332)
The parent class, RDoc::TestCase, already has RDoc::Options. We can use it instead of creating a new one.
1 parent 470e918 commit 7e84e91

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

test/rdoc/xref_test_case.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,8 @@ class XrefTestCase < RDoc::TestCase
99
def setup
1010
super
1111

12-
@options = RDoc::Options.new
1312
@options.quiet = true
1413

15-
@rdoc.options = @options
16-
1714
@file_name = 'xref_data.rb'
1815
@xref_data = @store.add_file @file_name
1916
@top_level = @xref_data
@@ -30,7 +27,6 @@ def setup
3027
@top_levels.push @example_md
3128

3229
generator = Object.new
33-
@rdoc.options = @options
3430
@rdoc.generator = generator
3531

3632
@c1 = @xref_data.find_module_named 'C1'

0 commit comments

Comments
 (0)