aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMarkus Reiter2016-10-02 07:58:04 +0200
committerMarkus Reiter2016-10-15 17:13:38 +0200
commita89dc33834e31fd8a3314647c747c4ddd1fbc029 (patch)
treefa3df7b7b98cbfef55efb8233697d19ebe18c2fe /Library
parent01d87f810721d8e8faf4b73ff5120923fa7c88ca (diff)
downloadbrew-a89dc33834e31fd8a3314647c747c4ddd1fbc029.tar.bz2
Change test for `puts_columns` with empty input.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/test/test_utils.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/Library/Homebrew/test/test_utils.rb b/Library/Homebrew/test/test_utils.rb
index 3eeb7ce9d..c97d70285 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