From 20df7ab7ae515c6a1d4fdc071b8600d1c7370b8e 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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/irb/test_input_method.rb b/test/irb/test_input_method.rb index 915297f56..c393c895d 100644 --- a/test/irb/test_input_method.rb +++ b/test/irb/test_input_method.rb @@ -79,7 +79,7 @@ def test_initialization_with_use_autocomplete IRB::RelineInputMethod.new(IRB::RegexpCompletor.new) assert Reline.autocompletion - assert_not_equal empty_proc, Reline.dialog_proc(:show_doc).dialog_proc + assert_not_equal empty_proc, Reline.dialog_proc(:show_doc).dialog_proc if defined?(RDoc) ensure Reline.add_dialog_proc(:show_doc, original_show_doc_proc, Reline::DEFAULT_DIALOG_CONTEXT) end @@ -190,5 +190,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