diff --git a/spec/bundler/support/rubygems_ext.rb b/spec/bundler/support/rubygems_ext.rb index 20cdea76fe20fc..82b2819858ba14 100644 --- a/spec/bundler/support/rubygems_ext.rb +++ b/spec/bundler/support/rubygems_ext.rb @@ -150,6 +150,7 @@ def install_gems(gemfile, path = nil) ENV["BUNDLE_PATH__SYSTEM"] = "true" end + # We don't use `Open3` here because it does not work on JRuby + Windows output = `#{Gem.ruby} #{File.expand_path("support/bundle.rb", Path.spec_dir)} install` raise output unless $?.success? ensure