Sha256: f425196e5875ca55e90a21f457c027346bf073b8b13fff83624d28643d11138f

Contents?: true

Size: 582 Bytes

Versions: 4

Compression:

Stored size: 582 Bytes

Contents

require 'minitest/autorun'
require 'minitest/pride'
require 'mocha/mini_test'
require 'rgeo/active_record/adapter_test_helper'

begin
  require 'byebug'
rescue LoadError
  # ignore
end

class ActiveSupport::TestCase
  self.test_order = :sorted

  DATABASE_CONFIG_PATH = File.dirname(__FILE__) << '/database.yml'

  class SpatialModel < ActiveRecord::Base
    establish_connection YAML.load_file(DATABASE_CONFIG_PATH)
  end

  def factory
    RGeo::Cartesian.preferred_factory(srid: 3785)
  end

  def geographic_factory
    RGeo::Geographic.spherical_factory(srid: 4326)
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
activerecord-postgis-adapter-3.0.0.beta4 test/test_helper.rb
activerecord-postgis-adapter-3.0.0.beta3 test/test_helper.rb
activerecord-postgis-adapter-3.0.0.beta2 test/test_helper.rb
activerecord-postgis-adapter-3.0.0.beta1 test/test_helper.rb