[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:
parent
81910a93ff
commit
c12c95462a
@ -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')
|
start_terminal(40, 80, %W{ruby -I#{@pwd}/lib #{script.to_path}}, startup_message: 'start IRB')
|
||||||
write("debug\n")
|
write("debug\n")
|
||||||
write("pp 1")
|
write("pp 1")
|
||||||
close
|
|
||||||
|
|
||||||
screen = result.join("\n").sub(/\n*\z/, "\n")
|
|
||||||
# submitted input shouldn't contain hint
|
# 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
|
ensure
|
||||||
File.unlink(script) if script
|
File.unlink(script) if script
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user