From 611b5e7f40dd7f0ee00df7981dc60890eeb2f315 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Thu, 3 Nov 2022 10:34:46 -0700 Subject: [ruby/irb] Fix build_context for ruby/ruby CI Co-Authored-By: Stan Lo https://github.com/ruby/irb/commit/d1fe234a9a --- test/irb/test_ruby_lex.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/irb/test_ruby_lex.rb b/test/irb/test_ruby_lex.rb index 3d6455a710..dcc998a24e 100644 --- a/test/irb/test_ruby_lex.rb +++ b/test/irb/test_ruby_lex.rb @@ -702,7 +702,8 @@ module TestIRB private def build_context(local_variables = nil) - workspace = IRB::WorkSpace.new + IRB.init_config(nil) + workspace = IRB::WorkSpace.new(TOPLEVEL_BINDING.dup) if local_variables local_variables.each do |n| -- cgit v1.2.3