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

[ruby/irb] Suppress "switching inspect mode" messages

https://github.com/ruby/irb/commit/ee068d039b
This commit is contained in:
Nobuyoshi Nakada 2022-11-04 20:43:12 +09:00 committed by git
parent ed9d761217
commit b83074dac7

View file

@ -629,6 +629,7 @@ module TestIRB
IRB.init_config(nil)
IRB.conf[:COMMAND_ALIASES] = { :'@' => :whereami }
workspace = IRB::WorkSpace.new(Object.new)
IRB.conf[:VERBOSE] = false
irb = IRB::Irb.new(workspace, input)
IRB.conf[:MAIN_CONTEXT] = irb.context
out, err = capture_output do
@ -652,6 +653,7 @@ module TestIRB
main.instance_variable_set(:@foo, "foo")
$bar = "bar"
workspace = IRB::WorkSpace.new(main)
IRB.conf[:VERBOSE] = false
irb = IRB::Irb.new(workspace, input)
IRB.conf[:MAIN_CONTEXT] = irb.context
out, err = capture_output do