summaryrefslogtreecommitdiff
path: root/test/irb
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2021-01-27 18:33:36 +0900
committeraycabta <aycabta@gmail.com>2021-01-27 18:33:36 +0900
commit80fb4758a9101197f1dd4e3f84a437569ea692ab (patch)
tree3eb83e3019654c92ab04e265e79afcdd9f705f2a /test/irb
parent69b42ae02db7385c18bafae893bb9368c9b79152 (diff)
In test, need to pass a context to IRB::WorkSpace.new explicitly
Diffstat (limited to 'test/irb')
-rw-r--r--test/irb/test_cmd.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/irb/test_cmd.rb b/test/irb/test_cmd.rb
index b5776ae..106e4d2 100644
--- a/test/irb/test_cmd.rb
+++ b/test/irb/test_cmd.rb
@@ -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