diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2019-06-29 20:16:49 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2021-05-12 17:24:43 +0900 |
commit | 26cbda8dc903d5d663f6c759be073df3346c6874 (patch) | |
tree | de16280ada7fe53fda17d43afb506f07e2761d81 /test/rubygems/test_gem_specification.rb | |
parent | cddeee21e992f1659ff9cb24d99e154aaba9daad (diff) | |
download | ruby-26cbda8dc903d5d663f6c759be073df3346c6874.tar.gz |
[rubygems/rubygems] Use capture_output instead of capture_io.
https://github.com/rubygems/rubygems/commit/ad9206d4d0
Diffstat (limited to 'test/rubygems/test_gem_specification.rb')
-rw-r--r-- | test/rubygems/test_gem_specification.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/rubygems/test_gem_specification.rb b/test/rubygems/test_gem_specification.rb index 1389b495f2..0f895e3cf3 100644 --- a/test/rubygems/test_gem_specification.rb +++ b/test/rubygems/test_gem_specification.rb @@ -1669,7 +1669,7 @@ dependencies: [] skip "extensions don't quite work on jruby" if Gem.java_platform? ext_spec - _, err = capture_io do + _, err = capture_output do refute @ext.contains_requirable_file? 'nonexistent' end @@ -1682,7 +1682,7 @@ dependencies: [] def test_contains_requirable_file_eh_extension_java_platform ext_spec(platform: Gem::Platform.new("java")) - _, err = capture_io do + _, err = capture_output do refute @ext.contains_requirable_file? 'nonexistent' end @@ -3515,7 +3515,7 @@ Did you mean 'Ruby'? specfile.write "raise 'boom'" specfile.close begin - capture_io do + capture_output do Gem::Specification.load(specfile.path) end rescue => e |