boost-build: use assert_predicate instead of File.exist?

This commit is contained in:
ilovezfs 2017-10-06 03:53:24 -07:00
parent 99829feaa5
commit 50c6488fe3

View file

@ -30,7 +30,8 @@ class BoostBuild < Formula
system bin/"b2", "release"
out = Dir["bin/darwin-*/release/hello"]
assert (out.length == 1) && File.exist?(out[0])
assert out.length == 1
assert_predicate testpath/out[0], :exist?
assert_equal "Hello world", shell_output(out[0])
end
end