summaryrefslogtreecommitdiff
path: root/test/rubygems/test_gem_source_git.rb
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2020-03-24 12:54:22 +0100
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-06-15 21:20:37 +0900
commitafce7eb39ec58f9ec65b3cf53059a4bc3bd58cbd (patch)
treeea9ce6a73ae5bf5f66c53cce54286b0974259c80 /test/rubygems/test_gem_source_git.rb
parentc61031d6b66674cf57211ff52677c223fe1d17ac (diff)
downloadruby-afce7eb39ec58f9ec65b3cf53059a4bc3bd58cbd.tar.gz
Replace `Gem::Util.silent_system` with better tools
Diffstat (limited to 'test/rubygems/test_gem_source_git.rb')
-rw-r--r--test/rubygems/test_gem_source_git.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/rubygems/test_gem_source_git.rb b/test/rubygems/test_gem_source_git.rb
index bcf97e367f..393190c9f5 100644
--- a/test/rubygems/test_gem_source_git.rb
+++ b/test/rubygems/test_gem_source_git.rb
@@ -69,8 +69,9 @@ class TestGemSourceGit < Gem::TestCase
git_gem 'b'
Dir.chdir 'git/a' do
- Gem::Util.silent_system @git, 'submodule', '--quiet',
- 'add', File.expand_path('../b'), 'b'
+ output, status = Open3.capture2e(@git, 'submodule', '--quiet', 'add', File.expand_path('../b'), 'b')
+ assert status.success?, output
+
system @git, 'commit', '--quiet', '-m', 'add submodule b'
end