Skip to content

Commit

Permalink
Debug test
Browse files Browse the repository at this point in the history
  • Loading branch information
st0012 committed Jul 17, 2023
1 parent 3665d4a commit fa5816a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/irb/yamatanooroti/test_rendering.rb
Original file line number Diff line number Diff line change
Expand Up @@ -260,14 +260,14 @@ def test_show_cmds_with_pager_can_quit_with_ctrl_c
write("show_cmds\n")
write("G") # move to the end of the screen
write("\C-c") # quit pager
write("'foo' + 'bar'\n") # eval something to make sure IRB resumes
close

screen = result.join("\n").sub(/\n*\z/, "\n")
# IRB::Abort should be rescued
assert_not_match(/IRB::Abort/, screen)
# IRB should resume
assert_not_match(/END/, screen)
assert_match(/=> nil/, screen)
assert_match(/foobar/, screen)
end

private
Expand Down

0 comments on commit fa5816a

Please sign in to comment.