Skip to content

Commit ab9c80d

Browse files
committed
Use capture_output instead of capture_io for test-unit
1 parent 773d260 commit ab9c80d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/rubygems/test_deprecate.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def execute
141141
end
142142

143143
def test_deprecated_method_outputs_a_warning_old_way
144-
out, err = capture_io do
144+
out, err = capture_output do
145145
thing = OtherThing.new
146146
thing.foo
147147
thing.foo_arg("msg")

test/rubygems/test_gem_package_task.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def test_gem_package_prints_to_stdout_by_default
5656
g.summary = 'summary'
5757
end
5858

59-
_, err = capture_io do
59+
_, err = capture_output do
6060
Rake.application = Rake::Application.new
6161

6262
pkg = Gem::PackageTask.new(gem) do |p|

0 commit comments

Comments
 (0)