ruby-changes:65068
From: aycabta <ko1@a...>
Date: Wed, 27 Jan 2021 18:36:36 +0900 (JST)
Subject: [ruby-changes:65068] 80fb4758a9 (master): In test, need to pass a context to IRB::WorkSpace.new explicitly
https://git.ruby-lang.org/ruby.git/commit/?id=80fb4758a9 From 80fb4758a9101197f1dd4e3f84a437569ea692ab Mon Sep 17 00:00:00 2001 From: aycabta <aycabta@g...> Date: Wed, 27 Jan 2021 18:33:36 +0900 Subject: In test, need to pass a context to IRB::WorkSpace.new explicitly --- test/irb/test_cmd.rb | 4 ++-- 1 file 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 https://github.com/ruby/ruby/blob/trunk/test/irb/test_cmd.rb#L287 ]) 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 https://github.com/ruby/ruby/blob/trunk/test/irb/test_cmd.rb#L313 ]) 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 -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/