Sha256: 35b8b89b97d09ea787c4331f7d0db38dd05182e2bc964e6e1ca04163f81c525d
Contents?: true
Size: 666 Bytes
Versions: 8
Compression:
Stored size: 666 Bytes
Contents
require File.expand_path('../test_helper', __FILE__) class TestBoundary < Minitest::Test FIXTURE = API_FIXTURES.fetch(:boundary_one) def test_initialization boundary = FieldView::Boundary.new(FIXTURE) assert_equal FIXTURE[:id], boundary.id assert_equal 58.923473472390256, boundary.area assert_equal "ac", boundary.units assert_equal 2, boundary.centroid.coordinates.length assert boundary.centroid.point? assert_equal 2, boundary.geometry.coordinates.length assert boundary.geometry.multi_polygon? assert boundary.geometry.multi_polygon? != boundary.centroid.multi_polygon?, "make sure they are different types" end end
Version data entries
8 entries across 8 versions & 1 rubygems