Skip to content

Commit 3225aab

Browse files
committed
Use capture_output instead of assert_silent
1 parent ab9c80d commit 3225aab

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/rubygems/test_gem_util.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@ def test_class_popen
1515
def test_silent_system
1616
skip if Gem.java_platform?
1717
Gem::Deprecate.skip_during do
18-
assert_silent do
18+
out, err = capture_output do
1919
Gem::Util.silent_system(*ruby_with_rubygems_in_load_path, '-e', 'puts "hello"; warn "hello"')
2020
end
2121
end
22+
assert_empty out
23+
assert_empty err
2224
end
2325

2426
def test_traverse_parents

0 commit comments

Comments
 (0)