diff --git a/test/irb/yamatanooroti/test_rendering.rb b/test/irb/yamatanooroti/test_rendering.rb index 1c4bb2341..12467b091 100644 --- a/test/irb/yamatanooroti/test_rendering.rb +++ b/test/irb/yamatanooroti/test_rendering.rb @@ -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