Utils.popen_read doesn't doesn't require a block
This commit is contained in:
parent
a70a805111
commit
7e20b353a2
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user