diff options
| author | Mike McQuaid | 2014-12-09 15:59:17 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2014-12-09 15:59:17 +0000 |
| commit | 3af3c9b0dd6cc17e0604a242360f27c215460492 (patch) | |
| tree | 3c5bafe5b1237f13bd5879b6ecbd6ca2e02dfd90 /Library/Formula | |
| parent | ba9c733349f8f536f826f4a185a21cf7dbf60e0d (diff) | |
| download | homebrew-3af3c9b0dd6cc17e0604a242360f27c215460492.tar.bz2 | |
tippecanoe: cleanup test.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/tippecanoe.rb | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/Library/Formula/tippecanoe.rb b/Library/Formula/tippecanoe.rb index aff50adba..6b9310e53 100644 --- a/Library/Formula/tippecanoe.rb +++ b/Library/Formula/tippecanoe.rb @@ -20,14 +20,12 @@ class Tippecanoe < Formula end test do - path = testpath/"test.geojson" - outputPath = testpath/"test.mbtiles" - path.write <<-EOS + path = testpath/"test.json" + path.write <<-EOS.undent {"type":"Feature","properties":{},"geometry":{"type":"Point","coordinates":[0,0]}} EOS - puts "#{bin}/tippecanoe #{path} -o #{outputPath}" - output = `#{bin}/tippecanoe < #{path} -o #{outputPath}`.strip - assert_equal "bbox: 80000000 80000000 80000000 80000000\nusing layer name test", output + output = `#{bin}/tippecanoe -o test.mbtiles #{path}`.strip assert_equal 0, $?.exitstatus + assert_equal "bbox: 80000000 80000000 80000000 80000000\nusing layer name test", output end end |
