1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[rubygems/rubygems] Require open3 before using it

Otherwise if this test file is run in isolation, this test will fail.

https://github.com/rubygems/rubygems/commit/79da003948
This commit is contained in:
David Rodríguez 2020-03-29 22:05:40 +02:00 committed by Hiroshi SHIBATA
parent 5df6082786
commit c832e3faa4
Notes: git 2020-05-08 14:14:09 +09:00

View file

@ -305,6 +305,7 @@ class TestGem < Gem::TestCase
install_specs a1
require "open3"
output, status = Open3.capture2e(
{ "GEM_HOME" => Gem.paths.home, "DEBUG_RESOLVER" => "1" },
*ruby_with_rubygems_in_load_path, "-e", "\"Gem.activate_bin_path('a', 'exec', '>= 0')\""