boost-build: use assert_predicate instead of File.exist?
This commit is contained in:
parent
99829feaa5
commit
50c6488fe3
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue