From cad64a19b040c26e17ce75598836647f66d124c2 Mon Sep 17 00:00:00 2001 From: tompng Date: Tue, 3 Sep 2024 23:15:29 +0900 Subject: [PATCH] Run most of the input-method tests even if RDoc is not avialable --- test/irb/test_input_method.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/irb/test_input_method.rb b/test/irb/test_input_method.rb index 915297f56..bd107551d 100644 --- a/test/irb/test_input_method.rb +++ b/test/irb/test_input_method.rb @@ -70,6 +70,7 @@ def test_initialization_without_use_autocomplete end def test_initialization_with_use_autocomplete + omit 'This test requires RDoc' unless defined?(RDoc) original_show_doc_proc = Reline.dialog_proc(:show_doc)&.dialog_proc empty_proc = Proc.new {} Reline.add_dialog_proc(:show_doc, empty_proc) @@ -190,5 +191,5 @@ def test_perfect_matching_handles_nil_namespace def has_rdoc_content? File.exist?(RDoc::RI::Paths::BASE) end - end -end if defined?(RDoc) + end if defined?(RDoc) +end