Sha256: 3bfcc2e5b2fe5f9a7b11a0f52f9e91f62204481ebc55f8742fc55223f071a713
Contents?: true
Size: 871 Bytes
Versions: 2
Compression:
Stored size: 871 Bytes
Contents
require 'rubygems' require 'spec' require 'pg' require 'activerecord' $:.unshift((File.join(File.dirname(__FILE__), '..', 'lib'))) gem 'activerecord', "=2.3.5" gem 'nofxx-georuby' require 'postgis_adapter' # Monkey patch Schema.define logger $logger = Logger.new(StringIO.new) def $logger.write(d); self.info(d); end # $stdout = $logger # GeoRuby::SimpleFeatures.srid = -1 ActiveRecord::Base.logger = $logger ActiveRecord::Base.establish_connection({ :adapter => "postgresql", :database => "postgis_adapter", :username => "nofxx", :password => "" }) PG_VERSION = ActiveRecord::Base.connection.select_value("SELECT version()").scan(/PostgreSQL ([\d\.]*)/)[0][0] puts "Running against PostgreSQL #{PG_VERSION}" require File.dirname(__FILE__) + '/db/schema_postgis.rb' require File.dirname(__FILE__) + '/db/models_postgis.rb'
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
postgis_adapter-0.7.7 | spec/spec_helper.rb |
postgis_adapter-0.7.5 | spec/spec_helper.rb |