1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[rubygems/rubygems] Use capture_output instead of capture_io for test-unit

https://github.com/rubygems/rubygems/commit/ab9c80d4cb
This commit is contained in:
Hiroshi SHIBATA 2020-05-25 21:58:27 +09:00
parent 3948be3503
commit 958f9d425a
Notes: git 2021-05-12 17:25:22 +09:00
2 changed files with 2 additions and 2 deletions

View file

@ -141,7 +141,7 @@ class TestDeprecate < Gem::TestCase
end
def test_deprecated_method_outputs_a_warning_old_way
out, err = capture_io do
out, err = capture_output do
thing = OtherThing.new
thing.foo
thing.foo_arg("msg")

View file

@ -56,7 +56,7 @@ class TestGemPackageTask < Gem::TestCase
g.summary = 'summary'
end
_, err = capture_io do
_, err = capture_output do
Rake.application = Rake::Application.new
pkg = Gem::PackageTask.new(gem) do |p|