Sha256: 304a25188eddd9aa5ef70443a92ff01cabfa0e01ffafe1255f952d4d246eb56f
Contents?: true
Size: 975 Bytes
Versions: 1
Compression:
Stored size: 975 Bytes
Contents
require 'simplecov' require 'fileutils' SimpleCov.adapters.define 'migrant' do add_filter '/test' add_filter '/lib/tasks' add_group 'Core Extensions', '/lib/migrant' add_group 'Schema Data Types', '/lib/datatype' end SimpleCov.start 'migrant' ENV['RAILS_ENV'] = 'test' require 'rubygems' require 'turn' # For nicer output require 'test/unit' require 'shoulda' # Must be loaded before appropriate models so we get class method extensions $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) $LOAD_PATH.unshift(File.dirname(__FILE__)) require 'migrant' # Reset database db_path = File.join(File.dirname(__FILE__), 'rails_app', 'db', 'test.sqlite3') File.delete(db_path) if File.exists?(db_path) # Remove migrations Dir.glob(File.join(File.dirname(__FILE__), 'rails_app', 'db', 'migrate', '*')).each do |file| File.delete(file) end require File.join(File.dirname(__FILE__), 'rails_app', 'config', 'environment') class Test::Unit::TestCase end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
migrant-0.1.0 | test/helper.rb |