From 86bca19d473c998996943f5189e291a2c3eb76a9 Mon Sep 17 00:00:00 2001 From: tompng Date: Thu, 6 Aug 2026 02:15:04 +0900 Subject: [PATCH] Revert "Update Ruby::Box context-mode test (#1221)" This reverts commit ffaf5f1e01640dae25788fe7f4f67fc6199b752e. --- test/irb/test_irb.rb | 5 ----- 1 file changed, 5 deletions(-) diff --git a/test/irb/test_irb.rb b/test/irb/test_irb.rb index 575fda11b..4d92fa088 100644 --- a/test/irb/test_irb.rb +++ b/test/irb/test_irb.rb @@ -994,11 +994,6 @@ class ContextModeTest < TestIRB::IntegrationTestCase def test_context_mode_ruby_box omit if RUBY_VERSION < "4.0.0" @envs['RUBY_BOX'] = '1' - # Ruby::Box now initializes RubyGems per box upstream. Avoid loading bundler context into test execution context. - %w[BUNDLER_SETUP BUNDLER_VERSION BUNDLE_BIN_PATH BUNDLE_GEMFILE RUBYOPT].each do |env| - @envs[env] = nil - end - @envs['RUBYLIB'] = Gem.loaded_specs.fetch('reline').full_require_paths.join(File::PATH_SEPARATOR) write_rc <<~'RUBY' IRB.conf[:CONTEXT_MODE] = 5