Skip to content

Commit

Permalink
Unpend rdoc dialog tests
Browse files Browse the repository at this point in the history
Without these tests, we don't have any coverage on autocompletion's rdoc
dialog, which is what caused #638 to happen.
  • Loading branch information
st0012 committed Jul 12, 2023
1 parent 418c2b9 commit 35dfdec
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions test/irb/yamatanooroti/test_rendering.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
return
end

class IRB::TestRendering < Yamatanooroti::TestCase
class IRB::RenderingTest < Yamatanooroti::TestCase
def setup
@pwd = Dir.pwd
suffix = '%010d' % Random.rand(0..65535)
Expand Down Expand Up @@ -176,7 +176,6 @@ def test_symbol_with_backtick
end

def test_autocomplete_with_showdoc_in_gaps_on_narrow_screen_right
pend "Needs a dummy document to show doc"
write_irbrc <<~'LINES'
IRB.conf[:PROMPT][:MY_PROMPT] = {
:PROMPT_I => "%03n> ",
Expand All @@ -191,15 +190,14 @@ def test_autocomplete_with_showdoc_in_gaps_on_narrow_screen_right
write("Str\C-i")
close
assert_screen(<<~EOC)
start IRB
001> String
StringPress A
StructString
of byte
StringPress O
StructString
EOC
end

def test_autocomplete_with_showdoc_in_gaps_on_narrow_screen_left
pend "Needs a dummy document to show doc"
write_irbrc <<~'LINES'
IRB.conf[:PROMPT][:MY_PROMPT] = {
:PROMPT_I => "%03n> ",
Expand All @@ -214,10 +212,10 @@ def test_autocomplete_with_showdoc_in_gaps_on_narrow_screen_left
write("Str\C-i")
close
assert_screen(<<~EOC)
start IRB
001> String
PressString
StrinStruct
of by
EOC
end

Expand Down

0 comments on commit 35dfdec

Please sign in to comment.