diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-05-25 22:11:47 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2021-05-12 17:24:43 +0900 |
commit | a1c416460b2cda7df6810ef8e9619d1903242de4 (patch) | |
tree | 98487cfecff343a70ef5e7faeb0f49595beab795 /test/rubygems | |
parent | 958f9d425a67678bfb1d20c11e0abf8f2d8d2144 (diff) | |
download | ruby-a1c416460b2cda7df6810ef8e9619d1903242de4.tar.gz |
[rubygems/rubygems] Use capture_output instead of assert_silent
https://github.com/rubygems/rubygems/commit/3225aab7f8
Diffstat (limited to 'test/rubygems')
-rw-r--r-- | test/rubygems/test_gem_util.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/rubygems/test_gem_util.rb b/test/rubygems/test_gem_util.rb index 7197f664e2..c07e580efb 100644 --- a/test/rubygems/test_gem_util.rb +++ b/test/rubygems/test_gem_util.rb @@ -15,10 +15,12 @@ class TestGemUtil < Gem::TestCase def test_silent_system skip if Gem.java_platform? Gem::Deprecate.skip_during do - assert_silent do + out, err = capture_output do Gem::Util.silent_system(*ruby_with_rubygems_in_load_path, '-e', 'puts "hello"; warn "hello"') end end + assert_empty out + assert_empty err end def test_traverse_parents |