From a21b953a996e4bc3b4b97180a80efa9fa343a50f Mon Sep 17 00:00:00 2001 From: tomoya ishida Date: Sun, 13 Oct 2024 13:30:30 +0900 Subject: [PATCH] Fix rendering test broken by conflict (#1016) --- 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