From c1598549a8c83f5c3811299472bdddabe88daa7c Mon Sep 17 00:00:00 2001 From: tompng Date: Sun, 13 Oct 2024 13:20:19 +0900 Subject: [PATCH] Fix rendering test broken by conflict --- test/irb/yamatanooroti/test_rendering.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/test/irb/yamatanooroti/test_rendering.rb b/test/irb/yamatanooroti/test_rendering.rb index 57aa0ecb3..ac6ce5346 100644 --- a/test/irb/yamatanooroti/test_rendering.rb +++ b/test/irb/yamatanooroti/test_rendering.rb @@ -461,11 +461,9 @@ def test_debug_integration_doesnt_hint_debugger_commands_in_nomultiline_mode start_terminal(40, 80, %W{ruby -I#{@pwd}/lib #{script.to_path}}, startup_message: 'start IRB') write("debug\n") write("pp 1") - close - - screen = result.join("\n").sub(/\n*\z/, "\n") # submitted input shouldn't contain hint - assert_include(screen, "irb:rdbg(main):002> pp 1\n") + assert_screen(/irb:rdbg\(main\):002> pp 1\n/) + close ensure File.unlink(script) if script end