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:
parent
a2b3f2014c
commit
0e5f9afff6
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue