aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-12-16 15:27:36 -0500
committerJack Nagel2014-12-16 15:27:36 -0500
commit7e20b353a2ca6e50ebddc796b0e7e79f9adf7889 (patch)
tree6a468d5aa29d4fae227ad5f456a452fb39b1fe06 /Library
parenta70a80511146ec35d9da82f678a0d36efe5c72d4 (diff)
downloadbrew-7e20b353a2ca6e50ebddc796b0e7e79f9adf7889.tar.bz2
Utils.popen_read doesn't doesn't require a block
Diffstat (limited to 'Library')
-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