aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2022-11-03 10:34:46 -0700
committergit <svn-admin@ruby-lang.org>2022-11-03 17:35:15 +0000
commit611b5e7f40dd7f0ee00df7981dc60890eeb2f315 (patch)
treeda7fd9b4614621f6198d3980f9b38b5a72607585
parent124f10f56b16e4fa4572b6dffde7487dcf914b26 (diff)
downloadruby-611b5e7f40dd7f0ee00df7981dc60890eeb2f315.tar.gz
[ruby/irb] Fix build_context for ruby/ruby CI
Co-Authored-By: Stan Lo <stan.lo@shopify.com> https://github.com/ruby/irb/commit/d1fe234a9a
-rw-r--r--test/irb/test_ruby_lex.rb3
1 files changed, 2 insertions, 1 deletions
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|