We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b20991 commit ffaf5f1Copy full SHA for ffaf5f1
1 file changed
test/irb/test_irb.rb
@@ -994,6 +994,11 @@ class ContextModeTest < TestIRB::IntegrationTestCase
994
def test_context_mode_ruby_box
995
omit if RUBY_VERSION < "4.0.0"
996
@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)
1002
1003
write_rc <<~'RUBY'
1004
IRB.conf[:CONTEXT_MODE] = 5
0 commit comments