Sha256: 90c81c0dfb087e95b13869e647b44e6b559fcfbc0474b789a49b85888a201720
Contents?: true
Size: 745 Bytes
Versions: 1
Compression:
Stored size: 745 Bytes
Contents
require 'coveralls' Coveralls.wear! require 'simplecov' SimpleCov.start require 'logger' require 'minitest/autorun' require 'active_record' require 'mass_insert' require 'fileutils' adapter = ENV['DATABASE_ADAPTER'] || 'sqlite3' FileUtils.mkdir_p('tmp') FileUtils.mkdir_p('log') ActiveRecord::Base.logger = Logger.new('log/test.log') ActiveRecord::Base.logger.level = Logger::DEBUG ActiveRecord::Base.configurations['test'] = YAML.load_file(File.dirname(__FILE__) + '/database.yml')[adapter] ActiveRecord::Base.establish_connection(:test) require File.dirname(__FILE__) + '/schema.rb' Dir[File.dirname(__FILE__) + "/support/**/*.rb"].each{ |file| require file } Dir[File.dirname(__FILE__) + "/models/**/*.rb"].each{ |file| require file }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mass_insert-0.2.2 | test/test_helper.rb |