Sha256: 3f125fd886643d08c2270997bcd9c7a182709a3ce65c0f8b5c1bc12b2122b545

Contents?: true

Size: 704 Bytes

Versions: 1

Compression:

Stored size: 704 Bytes

Contents

require 'fileutils'
require 'rubygems'
require 'activerecord'
begin
  require 'mysqlplus'
rescue LoadError
end

Dir.chdir File.join(File.dirname(__FILE__), '..', '..')

ActiveRecord::Base.logger = Logger.new("debug.log")

databases = YAML::load(IO.read("spec/active_record/fixtures/database.yml"))
db_info = databases[ENV["DB"] || "test"]
ActiveRecord::Base.establish_connection(db_info)

require 'spec/autorun'
require 'lib/blueprints'
require 'spec/active_record/fixtures/fruit'
require 'spec/active_record/fixtures/tree'

Spec::Runner.configure do |config|
  config.mock_with :mocha
  config.enable_blueprints :root => File.expand_path(File.join(File.dirname(__FILE__))), :prebuild => :big_cherry
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
blueprints-0.3.3 spec/active_record/spec_helper.rb