diff options
Diffstat (limited to 'test')
-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 |