aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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|