Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bfcdf79

Browse files
committed
Fixed variable scope at test_silent_system
1 parent 8b2ca6d commit bfcdf79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/rubygems/test_gem_util.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ def test_silent_system
1818
out, err = capture_output do
1919
Gem::Util.silent_system(*ruby_with_rubygems_in_load_path, '-e', 'puts "hello"; warn "hello"')
2020
end
21+
assert_empty out
22+
assert_empty err
2123
end
22-
assert_empty out
23-
assert_empty err
2424
end
2525

2626
def test_traverse_parents

0 commit comments

Comments
 (0)