Skip to content

Commit

Permalink
Use capture_output instead of capture_io for test-unit
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed May 11, 2021
1 parent 773d260 commit ab9c80d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/rubygems/test_deprecate.rb
Expand Up @@ -141,7 +141,7 @@ def execute
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")
Expand Down
2 changes: 1 addition & 1 deletion test/rubygems/test_gem_package_task.rb
Expand Up @@ -56,7 +56,7 @@ def test_gem_package_prints_to_stdout_by_default
g.summary = 'summary'
end

_, err = capture_io do
_, err = capture_output do
Rake.application = Rake::Application.new

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

0 comments on commit ab9c80d

Please sign in to comment.