Sha256: 8428a5b5e6038ae159d94404ed4cbb054e5a6fe55f3aa2fba4016bfe758baaba
Contents?: true
Size: 902 Bytes
Versions: 5
Compression:
Stored size: 902 Bytes
Contents
# ----------------------------------------------------------------------------- # # Tests for the GEOS factory # # ----------------------------------------------------------------------------- require "test/unit" require "rgeo" require ::File.expand_path("../common/factory_tests.rb", ::File.dirname(__FILE__)) module RGeo module Tests # :nodoc: module GeosCAPI # :nodoc: class TestFactory < ::Test::Unit::TestCase # :nodoc: def setup @factory = ::RGeo::Geos.factory(srid: 1000) @srid = 1000 end include ::RGeo::Tests::Common::FactoryTests def test_is_geos_factory assert_equal(true, ::RGeo::Geos.is_geos?(@factory)) assert_equal(true, ::RGeo::Geos.is_capi_geos?(@factory)) assert_equal(false, ::RGeo::Geos.is_ffi_geos?(@factory)) end end end end end if ::RGeo::Geos.capi_supported?
Version data entries
5 entries across 5 versions & 2 rubygems