tippecanoe: use assert_predicate instead of File.exist?

This commit is contained in:
ilovezfs 2017-10-06 04:04:19 -07:00
parent 3c0db9727d
commit 1c1f812bb6

View file

@ -22,6 +22,6 @@ class Tippecanoe < Formula
{"type":"Feature","properties":{},"geometry":{"type":"Point","coordinates":[0,0]}}
EOS
safe_system "#{bin}/tippecanoe", "-o", "test.mbtiles", "test.json"
assert File.exist?("#{testpath}/test.mbtiles"), "tippecanoe generated no output!"
assert_predicate testpath/"test.mbtiles", :exist?, "tippecanoe generated no output!"
end
end