Utils.popen_read doesn't doesn't require a block

This commit is contained in:
Jack Nagel 2014-12-16 15:27:36 -05:00
parent a70a805111
commit 7e20b353a2

View File

@ -7,7 +7,7 @@ class UtilTests < Homebrew::TestCase
end end
def test_popen_read 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_equal "success", out
assert_predicate $?, :success? assert_predicate $?, :success?
end end