Sha256: 00d06b57b4df3fb650049796cae0ce6251aa3c222c9cc4f33f09b6d05fdd2b76

Contents?: true

Size: 633 Bytes

Versions: 9

Compression:

Stored size: 633 Bytes

Contents

require 'rubygems'
require 'activerecord'
require 'test/unit'
require 'active_record/test_case'
require 'shoulda'
require 'mocha'
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/db/database.yml"))
db_info = databases[ENV["DB"] || "test"]
ActiveRecord::Base.establish_connection(db_info)

require 'lib/blueprints'
require 'spec/db/fruit'
require 'spec/db/tree'

class ActiveSupport::TestCase
  enable_blueprints :root => File.join(File.dirname(__FILE__), '..'), :prebuild => :big_cherry
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
blueprints-0.3.3 test/test_helper.rb
blueprints-0.3.2 test/test_helper.rb
blueprints-0.3.1 test/test_helper.rb
blueprints-0.3.0 test/test_helper.rb
blueprints-0.2.4 test/test_helper.rb
blueprints-0.2.3 test/test_helper.rb
blueprints-0.2.2 test/test_helper.rb
blueprints-0.2.1 test/test_helper.rb
blueprints-0.2.0 test/test_helper.rb