From 1c1f812bb66aaa288bc29bc4799c3016586bb6a4 Mon Sep 17 00:00:00 2001 From: ilovezfs Date: Fri, 6 Oct 2017 04:04:19 -0700 Subject: [PATCH] tippecanoe: use assert_predicate instead of File.exist? --- Formula/tippecanoe.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/tippecanoe.rb b/Formula/tippecanoe.rb index 375fd186d8..663a485a88 100644 --- a/Formula/tippecanoe.rb +++ b/Formula/tippecanoe.rb @@ -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