summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2020-03-29 22:05:40 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-05-08 14:13:29 +0900
commitc832e3faa48d8673af80391b2b6bec4a461455b0 (patch)
tree673f84179b11515d046fd7c707371009a1de9078
parent5df6082786ac12d5e5dddfa326ca9544cd4913bf (diff)
[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
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3092
-rw-r--r--test/rubygems/test_gem.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/rubygems/test_gem.rb b/test/rubygems/test_gem.rb
index 81162826ac..57e1f4f16f 100644
--- a/test/rubygems/test_gem.rb
+++ b/test/rubygems/test_gem.rb
@@ -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')\""