ruby-changes:66169
From: Hiroshi <ko1@a...>
Date: Wed, 12 May 2021 17:25:14 +0900 (JST)
Subject: [ruby-changes:66169] 958f9d425a (master): [rubygems/rubygems] Use capture_output instead of capture_io for test-unit
https://git.ruby-lang.org/ruby.git/commit/?id=958f9d425a From 958f9d425a67678bfb1d20c11e0abf8f2d8d2144 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA <hsbt@r...> Date: Mon, 25 May 2020 21:58:27 +0900 Subject: [rubygems/rubygems] Use capture_output instead of capture_io for test-unit https://github.com/rubygems/rubygems/commit/ab9c80d4cb --- test/rubygems/test_deprecate.rb | 2 +- test/rubygems/test_gem_package_task.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/rubygems/test_deprecate.rb b/test/rubygems/test_deprecate.rb index 778a501..4a14266 100644 --- a/test/rubygems/test_deprecate.rb +++ b/test/rubygems/test_deprecate.rb @@ -141,7 +141,7 @@ class TestDeprecate < Gem::TestCase https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_deprecate.rb#L141 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") diff --git a/test/rubygems/test_gem_package_task.rb b/test/rubygems/test_gem_package_task.rb index f63ef0d..6f21706 100644 --- a/test/rubygems/test_gem_package_task.rb +++ b/test/rubygems/test_gem_package_task.rb @@ -56,7 +56,7 @@ class TestGemPackageTask < Gem::TestCase https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_gem_package_task.rb#L56 g.summary = 'summary' end - _, err = capture_io do + _, err = capture_output do Rake.application = Rake::Application.new pkg = Gem::PackageTask.new(gem) do |p| -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/