Skip to content

Commit

Permalink
Run most of the input-method tests even if RDoc is not avialable
Browse files Browse the repository at this point in the history
  • Loading branch information
tompng committed Sep 3, 2024
1 parent 95a190f commit 20df7ab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/irb/test_input_method.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit 20df7ab

Please sign in to comment.