Skip to content

Commit ffaf5f1

Browse files
authored
Update Ruby::Box context-mode test (#1221)
1 parent 1b20991 commit ffaf5f1

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

test/irb/test_irb.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -994,6 +994,11 @@ class ContextModeTest < TestIRB::IntegrationTestCase
994994
def test_context_mode_ruby_box
995995
omit if RUBY_VERSION < "4.0.0"
996996
@envs['RUBY_BOX'] = '1'
997+
# Ruby::Box now initializes RubyGems per box upstream. Avoid loading bundler context into test execution context.
998+
%w[BUNDLER_SETUP BUNDLER_VERSION BUNDLE_BIN_PATH BUNDLE_GEMFILE RUBYOPT].each do |env|
999+
@envs[env] = nil
1000+
end
1001+
@envs['RUBYLIB'] = Gem.loaded_specs.fetch('reline').full_require_paths.join(File::PATH_SEPARATOR)
9971002

9981003
write_rc <<~'RUBY'
9991004
IRB.conf[:CONTEXT_MODE] = 5

0 commit comments

Comments
 (0)