gpsbabel: use assert_predicate instead of File.exist?

This commit is contained in:
ilovezfs 2017-10-06 02:39:17 -07:00
parent 11ed97bcfe
commit f86a802b95

View file

@ -41,6 +41,6 @@ class Gpsbabel < Formula
</loc>
EOS
system bin/"gpsbabel", "-i", "geo", "-f", "test.loc", "-o", "gpx", "-F", "test.gpx"
assert File.exist? "test.gpx"
assert_predicate testpath/"test.gpx", :exist?
end
end