aboutsummaryrefslogtreecommitdiffstats
path: root/test/rubygems/test_gem_util.rb
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2020-04-08 21:14:27 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-05-08 14:13:29 +0900
commit676d816ef1fa55bae2b5020782ba47284748383b (patch)
treee48ab9101cfeb76a708c319168d68da20d7b386d /test/rubygems/test_gem_util.rb
parent163539434701235b46ad14e10d573c0b85cb6b50 (diff)
downloadruby-676d816ef1fa55bae2b5020782ba47284748383b.tar.gz
[rubygems/rubygems] Refactor ruby command line building for tests
https://github.com/rubygems/rubygems/commit/43819b6973
Diffstat (limited to 'test/rubygems/test_gem_util.rb')
-rw-r--r--test/rubygems/test_gem_util.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/rubygems/test_gem_util.rb b/test/rubygems/test_gem_util.rb
index 3f1d069a20..387dff0d8a 100644
--- a/test/rubygems/test_gem_util.rb
+++ b/test/rubygems/test_gem_util.rb
@@ -6,7 +6,7 @@ class TestGemUtil < Gem::TestCase
def test_class_popen
skip "popen with a block does not behave well on jruby" if Gem.java_platform?
- assert_equal "0\n", Gem::Util.popen(Gem.ruby, '-I', File.expand_path('../../../lib', __FILE__), '-e', 'p 0')
+ assert_equal "0\n", Gem::Util.popen(*ruby_with_rubygems_in_load_path, '-e', 'p 0')
assert_raises Errno::ECHILD do
Process.wait(-1)
@@ -16,7 +16,7 @@ class TestGemUtil < Gem::TestCase
def test_silent_system
skip if Gem.java_platform?
assert_silent do
- Gem::Util.silent_system Gem.ruby, '-I', File.expand_path('../../../lib', __FILE__), '-e', 'puts "hello"; warn "hello"'
+ Gem::Util.silent_system(*ruby_with_rubygems_in_load_path, '-e', 'puts "hello"; warn "hello"')
end
end