mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
parent
ed9d761217
commit
b83074dac7
1 changed files with 2 additions and 0 deletions
|
@ -629,6 +629,7 @@ module TestIRB
|
||||||
IRB.init_config(nil)
|
IRB.init_config(nil)
|
||||||
IRB.conf[:COMMAND_ALIASES] = { :'@' => :whereami }
|
IRB.conf[:COMMAND_ALIASES] = { :'@' => :whereami }
|
||||||
workspace = IRB::WorkSpace.new(Object.new)
|
workspace = IRB::WorkSpace.new(Object.new)
|
||||||
|
IRB.conf[:VERBOSE] = false
|
||||||
irb = IRB::Irb.new(workspace, input)
|
irb = IRB::Irb.new(workspace, input)
|
||||||
IRB.conf[:MAIN_CONTEXT] = irb.context
|
IRB.conf[:MAIN_CONTEXT] = irb.context
|
||||||
out, err = capture_output do
|
out, err = capture_output do
|
||||||
|
@ -652,6 +653,7 @@ module TestIRB
|
||||||
main.instance_variable_set(:@foo, "foo")
|
main.instance_variable_set(:@foo, "foo")
|
||||||
$bar = "bar"
|
$bar = "bar"
|
||||||
workspace = IRB::WorkSpace.new(main)
|
workspace = IRB::WorkSpace.new(main)
|
||||||
|
IRB.conf[:VERBOSE] = false
|
||||||
irb = IRB::Irb.new(workspace, input)
|
irb = IRB::Irb.new(workspace, input)
|
||||||
IRB.conf[:MAIN_CONTEXT] = irb.context
|
IRB.conf[:MAIN_CONTEXT] = irb.context
|
||||||
out, err = capture_output do
|
out, err = capture_output do
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue