Sha256: ce227b46ac4b73e236fcb9feeed958bd75364addf8ed049bcf99893a3d08ac6e
Contents?: true
Size: 734 Bytes
Versions: 1
Compression:
Stored size: 734 Bytes
Contents
require 'pathname' require 'rubygems' gem 'rspec', '~>1.2' require 'spec' require Pathname(__FILE__).dirname.parent.expand_path + 'lib/dm-migrations' require Pathname(__FILE__).dirname.parent.expand_path + 'lib/migration_runner' ADAPTERS = [] def load_driver(name, default_uri) begin DataMapper.setup(name, default_uri) DataMapper::Repository.adapters[:default] = DataMapper::Repository.adapters[name] ADAPTERS << name true rescue LoadError => e warn "Could not load do_#{name}: #{e}" false end end #ENV['ADAPTER'] ||= 'sqlite3' load_driver(:sqlite3, 'sqlite3::memory:') load_driver(:mysql, 'mysql://localhost/dm_core_test') load_driver(:postgres, 'postgres://postgres@localhost/dm_core_test')
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dm-migrations-0.9.11 | spec/spec_helper.rb |