Sha256: ba2351e9082947eb61c2d56d7870b3c2ad840f3999bf4a16ffb1444dcc6cdad7

Contents?: true

Size: 541 Bytes

Versions: 8

Compression:

Stored size: 541 Bytes

Contents

require File.dirname(__FILE__) + '/../../spec_helper'

require 'ginger'
require 'active_record'

DB_FILE = File.expand_path(File.dirname(__FILE__)+'/db.sqlite3')

%w{migration initializer models}.each do |file|
  require "#{File.dirname(__FILE__)}/#{file}"
end 

Spec::Runner.configure do |config|
  
  config.before(:all) do
    FileUtils.rm_f(DB_FILE)
    ActiveRecord::Base.establish_connection(
       :adapter => "sqlite3",
       :database  => DB_FILE
     )
     MigrationForTest.verbose = false
     MigrationForTest.up
  end
  
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
dragonfly-0.5.7 spec/dragonfly/active_record_extensions/spec_helper.rb
dragonfly-0.5.6 spec/dragonfly/active_record_extensions/spec_helper.rb
dragonfly-0.5.5 spec/dragonfly/active_record_extensions/spec_helper.rb
dragonfly-0.5.4 spec/dragonfly/active_record_extensions/spec_helper.rb
dragonfly-0.5.3 spec/dragonfly/active_record_extensions/spec_helper.rb
dragonfly-0.5.2 spec/dragonfly/active_record_extensions/spec_helper.rb
dragonfly-0.5.1 spec/dragonfly/active_record_extensions/spec_helper.rb
dragonfly-0.5.0 spec/dragonfly/active_record_extensions/spec_helper.rb