[ruby/irb] Fix rendering test broken by conflict

(https://github.com/ruby/irb/pull/1016)

https://github.com/ruby/irb/commit/a21b953a99
This commit is contained in:
tomoya ishida 2024-10-13 13:30:30 +09:00 committed by git
parent 81910a93ff
commit c12c95462a

View File

@ -461,11 +461,9 @@ class IRB::RenderingTest < Yamatanooroti::TestCase
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