kobalt: use assert_predicate instead of File.exist?

This commit is contained in:
ilovezfs 2017-10-06 03:53:26 -07:00
parent 9eda34f526
commit 8854609817

View file

@ -37,6 +37,6 @@ class Kobalt < Formula
system "#{bin}/kobaltw", "assemble"
output = "kobaltBuild/libs/test-1.0.jar"
assert File.exist?(output), "Couldn't find #{output}"
assert_predicate testpath/output, :exist?, "Couldn't find #{output}"
end
end