aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/test_utils.rb
diff options
context:
space:
mode:
authorJack Nagel2014-12-16 15:27:36 -0500
committerJack Nagel2014-12-16 15:27:36 -0500
commit8a0c4ecc9126d506bef247bb66a512dd5c1647ea (patch)
treee22070b2a62773354aea5cb978ec035db602383a /Library/Homebrew/test/test_utils.rb
parent42425738c8db88a971d1bc9c05a0ea5fe20b00ba (diff)
downloadhomebrew-8a0c4ecc9126d506bef247bb66a512dd5c1647ea.tar.bz2
Utils.popen_read doesn't doesn't require a block
Diffstat (limited to 'Library/Homebrew/test/test_utils.rb')
-rw-r--r--Library/Homebrew/test/test_utils.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/test/test_utils.rb b/Library/Homebrew/test/test_utils.rb
index f9dce3a8c..120ef6541 100644
--- a/Library/Homebrew/test/test_utils.rb
+++ b/Library/Homebrew/test/test_utils.rb
@@ -7,7 +7,7 @@ class UtilTests < Homebrew::TestCase
end
def test_popen_read
- out = Utils.popen_read("/bin/sh", "-c", "echo success", &:read).chomp
+ out = Utils.popen_read("/bin/sh", "-c", "echo success").chomp
assert_equal "success", out
assert_predicate $?, :success?
end