aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test
diff options
context:
space:
mode:
authorMarkus Reiter2016-10-15 18:51:11 +0200
committerGitHub2016-10-15 18:51:11 +0200
commitc233cacaf283a42940bdf3f607d82dab07d746a4 (patch)
tree2c27248754a6c2b234adc7faae70e28c67ca0d17 /Library/Homebrew/test
parent527a62b64bd8c578af08540166a8b1fd5bce521f (diff)
parent581a1245bf2c038a2f35fb10445592c7655108e3 (diff)
downloadbrew-c233cacaf283a42940bdf3f607d82dab07d746a4.tar.bz2
Merge pull request #1208 from reitermarkus/puts-columns
Refactor `puts_columns` to allow `$stderr.puts_columns`.
Diffstat (limited to 'Library/Homebrew/test')
-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..11332e450 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 Formatter.columns([])
+ end
+
+ assert_equal out, "\n"
+ assert_equal err, ""
end
def test_which