Sha256: 17f927d416626c9c5a9f08d66813fc0ffd677658be5cf22f981d32bda60f8cdf

Contents?: true

Size: 685 Bytes

Versions: 7

Compression:

Stored size: 685 Bytes

Contents

require 'fileutils'
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

7 entries across 7 versions & 1 rubygems

Version Path
blueprints-0.4.1 spec/active_record/spec_helper.rb
blueprints-0.4.0 spec/active_record/spec_helper.rb
blueprints-0.3.4 spec/active_record/spec_helper.rb
blueprints-0.3.2 spec/active_record/spec_helper.rb
blueprints-0.3.1 spec/active_record/spec_helper.rb
blueprints-0.3.0 spec/active_record/spec_helper.rb
blueprints-0.2.4 spec/active_record/spec_helper.rb