Sha256: 46e4d805ccd6a447bfd79d28f4668f9abff08ec28a8789d3c399418187429fdc

Contents?: true

Size: 882 Bytes

Versions: 6

Compression:

Stored size: 882 Bytes

Contents

require 'pathname'

require 'test/unit'
require 'active_support/test_case'

require 'active_record'
require 'active_record/test_case'
require 'active_record/fixtures'

# require 'action_controller'
# require 'action_dispatch'
# require 'action_dispatch/testing/test_process'

pwd = Pathname.new(File.dirname(__FILE__)).expand_path

PLUGIN_ROOT = pwd + '..'
ADAPTER = ENV['DB'] || 'mysql'

$LOAD_PATH << (PLUGIN_ROOT + 'lib')
$LOAD_PATH << (PLUGIN_ROOT + 'test/models')

config_file = PLUGIN_ROOT + 'test/database.yml'
db_config   = YAML::load(IO.read(config_file))
logger_file = PLUGIN_ROOT + "test/#{ADAPTER}-debug.log"
schema_file = PLUGIN_ROOT + 'test/schema.rb'

ActiveRecord::Base.configurations = db_config
ActiveRecord::Base.logger = Logger.new(logger_file)
ActiveRecord::Base.establish_connection(db_config[ADAPTER])

ActiveRecord::Migration.verbose = false
load schema_file

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
geokit-rails3-0.1.2 test/boot.rb
geokit-rails3-0.1.1 test/boot.rb
geokit-rails3-0.1.0 test/boot.rb
geokit-rails3-0.0.5 test/boot.rb
geokit-rails3-0.0.4 test/boot.rb
geokit-rails3-0.0.3 test/boot.rb