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 cad64a1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/irb/test_input_method.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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

0 comments on commit cad64a1

Please sign in to comment.