spec/spec_helper.rb in nofxx-postgis_adapter-0.3.9 vs spec/spec_helper.rb in nofxx-postgis_adapter-0.5.0
- old
+ new
@@ -1,15 +1,15 @@
require 'rubygems'
require 'spec'
-require 'postgres'
+require 'pg'
require 'activerecord'
require 'rspec_spinner'
gem 'activerecord', "=2.3.2"
$:.unshift((File.join(File.dirname(__FILE__), '..', 'lib')))
require 'postgis_adapter'
-GeoRuby::Base.srid = -1
+GeoRuby::SimpleFeatures.srid = -1
config = YAML.load_file(File.dirname(__FILE__) + '/db/database_postgis.yml')
# ActiveRecord::Base.logger = Logger.new(File.dirname(__FILE__) + "/debug.log")
ActiveRecord::Base.establish_connection(config)
#require File.dirname(__FILE__) + '/db/schema_postgis.rb'
require File.dirname(__FILE__) + '/db/models_postgis.rb'