Sha256: 14df31ba9b2f28d4832b62a70a699b612c876d8c3a20dd281b3d60ad05732bd5

Contents?: true

Size: 737 Bytes

Versions: 3

Compression:

Stored size: 737 Bytes

Contents

require 'pathname'
require 'rubygems'

gem 'rspec', '~>1.1.11'
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

3 entries across 3 versions & 1 rubygems

Version Path
dm-migrations-0.9.10 spec/spec_helper.rb
dm-migrations-0.9.8 spec/spec_helper.rb
dm-migrations-0.9.9 spec/spec_helper.rb