diff options
author | tomoya ishida <[email protected]> | 2024-10-13 13:30:30 +0900 |
---|---|---|
committer | git <[email protected]> | 2024-10-13 04:30:33 +0000 |
commit | c12c95462a22551af2f0437cd08136b55c4bb4b7 (patch) | |
tree | 0640706b9786e84dda1e781b4f997162b8d644e5 | |
parent | 81910a93ff2688fc1a6d4a5200782869105e8872 (diff) |
[ruby/irb] Fix rendering test broken by conflict
(https://github.com/ruby/irb/pull/1016)
https://github.com/ruby/irb/commit/a21b953a99
-rw-r--r-- | test/irb/yamatanooroti/test_rendering.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/irb/yamatanooroti/test_rendering.rb b/test/irb/yamatanooroti/test_rendering.rb index 57aa0ecb3c..ac6ce5346e 100644 --- a/test/irb/yamatanooroti/test_rendering.rb +++ b/test/irb/yamatanooroti/test_rendering.rb @@ -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 |