dependency-check: use assert_predicate instead of File.exist?

This commit is contained in:
ilovezfs 2017-10-06 02:47:48 -07:00
parent 729223a42a
commit af366a5232

View file

@ -37,6 +37,6 @@ class DependencyCheck < Formula
EOS
system bin/"dependency-check", "-P", "temp-props.properties", "-f", "XML",
"--project", "dc", "-s", libexec, "-d", testpath, "-o", testpath
assert File.exist?(testpath/"dependency-check-report.xml")
assert_predicate testpath/"dependency-check-report.xml", :exist?
end
end