mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
In test, need to pass a context to IRB::WorkSpace.new explicitly
This commit is contained in:
parent
69b42ae02d
commit
80fb4758a9
1 changed files with 2 additions and 2 deletions
|
@ -287,7 +287,7 @@ module TestIRB
|
||||||
])
|
])
|
||||||
IRB.conf[:VERBOSE] = false
|
IRB.conf[:VERBOSE] = false
|
||||||
IRB.conf[:PROMPT_MODE] = :SIMPLE
|
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
|
IRB.conf[:MAIN_CONTEXT] = irb.context
|
||||||
out, err = capture_output do
|
out, err = capture_output do
|
||||||
irb.eval_input
|
irb.eval_input
|
||||||
|
@ -313,7 +313,7 @@ module TestIRB
|
||||||
])
|
])
|
||||||
IRB.conf[:VERBOSE] = false
|
IRB.conf[:VERBOSE] = false
|
||||||
IRB.conf[:PROMPT_MODE] = :SIMPLE
|
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
|
IRB.conf[:MAIN_CONTEXT] = irb.context
|
||||||
out, err = capture_output do
|
out, err = capture_output do
|
||||||
irb.eval_input
|
irb.eval_input
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue