mirror of
https://github.com/ruby/ruby.git
synced 2026-01-27 12:34:21 +00:00
In test, need to pass a context to IRB::WorkSpace.new explicitly
This commit is contained in:
parent
69b42ae02d
commit
80fb4758a9
@ -287,7 +287,7 @@ module TestIRB
|
||||
])
|
||||
IRB.conf[:VERBOSE] = false
|
||||
IRB.conf[:PROMPT_MODE] = :SIMPLE
|
||||
irb = IRB::Irb.new(IRB::WorkSpace.new, input)
|
||||
irb = IRB::Irb.new(IRB::WorkSpace.new(self), input)
|
||||
IRB.conf[:MAIN_CONTEXT] = irb.context
|
||||
out, err = capture_output do
|
||||
irb.eval_input
|
||||
@ -313,7 +313,7 @@ module TestIRB
|
||||
])
|
||||
IRB.conf[:VERBOSE] = false
|
||||
IRB.conf[:PROMPT_MODE] = :SIMPLE
|
||||
irb = IRB::Irb.new(IRB::WorkSpace.new, input)
|
||||
irb = IRB::Irb.new(IRB::WorkSpace.new(self), input)
|
||||
IRB.conf[:MAIN_CONTEXT] = irb.context
|
||||
out, err = capture_output do
|
||||
irb.eval_input
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user