From 72a6faa644c9f6460eb000145c8aa7a77b1731d1 Mon Sep 17 00:00:00 2001 From: Sutou Kouhei Date: Tue, 25 Mar 2025 09:43:55 +0900 Subject: [PATCH] Remove needless RDoc::Options from XrefTestCase The parent class, RDoc::TestCase, already has RDoc::Options. We can use it instead of creating a new one. --- test/rdoc/xref_test_case.rb | 4 ---- 1 file changed, 4 deletions(-) diff --git a/test/rdoc/xref_test_case.rb b/test/rdoc/xref_test_case.rb index 2daba10232..4c3e3166b2 100644 --- a/test/rdoc/xref_test_case.rb +++ b/test/rdoc/xref_test_case.rb @@ -9,11 +9,8 @@ class XrefTestCase < RDoc::TestCase def setup super - @options = RDoc::Options.new @options.quiet = true - @rdoc.options = @options - @file_name = 'xref_data.rb' @xref_data = @store.add_file @file_name @top_level = @xref_data @@ -30,7 +27,6 @@ def setup @top_levels.push @example_md generator = Object.new - @rdoc.options = @options @rdoc.generator = generator @c1 = @xref_data.find_module_named 'C1'