From a89dc33834e31fd8a3314647c747c4ddd1fbc029 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Sun, 2 Oct 2016 07:58:04 +0200 Subject: [PATCH] Change test for `puts_columns` with empty input. --- Library/Homebrew/test/test_utils.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/test/test_utils.rb b/Library/Homebrew/test/test_utils.rb index 3eeb7ce9dd..c97d702850 100644 --- a/Library/Homebrew/test/test_utils.rb +++ b/Library/Homebrew/test/test_utils.rb @@ -110,8 +110,12 @@ class UtilTests < Homebrew::TestCase end def test_put_columns_empty - # Issue #217 put columns with no results fails. - assert_silent { puts_columns [] } + out, err = capture_io do + puts_columns [] + end + + assert_equal out, "\n" + assert_equal err, "" end def test_which