diff options
author | aycabta <[email protected]> | 2021-01-27 18:33:36 +0900 |
---|---|---|
committer | aycabta <[email protected]> | 2021-01-27 18:33:36 +0900 |
commit | 80fb4758a9101197f1dd4e3f84a437569ea692ab (patch) | |
tree | 3eb83e3019654c92ab04e265e79afcdd9f705f2a | |
parent | 69b42ae02db7385c18bafae893bb9368c9b79152 (diff) |
In test, need to pass a context to IRB::WorkSpace.new explicitly
-rw-r--r-- | test/irb/test_cmd.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/irb/test_cmd.rb b/test/irb/test_cmd.rb index b5776ae01f..106e4d2add 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 |