1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/irb] Set prompt mode explictly

Fix https://github.com/ruby/irb/pull/353

https://github.com/ruby/irb/commit/7db93f9326
This commit is contained in:
Nobuyoshi Nakada 2022-06-26 15:21:22 +09:00 committed by git
parent a2b3f2014c
commit 0e5f9afff6

View file

@ -137,6 +137,7 @@ module TestIRB
input.instance_variable_set(:@stdout, StringIO.new)
irb = IRB::Irb.new(IRB::WorkSpace.new(Object.new), input)
irb.context.echo_on_assignment = :truncate
irb.context.prompt_mode = :DEFAULT
out, err = capture_output do
irb.eval_input
end