Sha256: f51aef8d86f2e0b27ca338a4ee0b273d0081f94c0d46860054f14035be135393

Contents?: true

Size: 529 Bytes

Versions: 3

Compression:

Stored size: 529 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 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

3 entries across 3 versions & 1 rubygems

Version Path
dragonfly-0.6.2 spec/dragonfly/active_record_extensions/spec_helper.rb
dragonfly-0.6.1 spec/dragonfly/active_record_extensions/spec_helper.rb
dragonfly-0.6.0 spec/dragonfly/active_record_extensions/spec_helper.rb