Sha256: f0c3e813aaf72860ee5a77b11848a84a37ec0765a539c8ddf0c3d7f7c9d5d671
Contents?: true
Size: 628 Bytes
Versions: 3
Compression:
Stored size: 628 Bytes
Contents
$: << File.join(File.dirname(__FILE__), "/../lib" ) # Set the default environment to sqlite3's in_memory database ENV['RAILS_ENV'] ||= 'test' ENV['RAILS_ROOT'] = 'app_root' # Load the Rails environment and testing framework require "#{File.dirname(__FILE__)}/app_root/config/environment" require 'rspec/rails' FileUtils.rm(Dir.glob("#{Rails.root}/db/*.db"), :force => true) # Run the migrations print "\033[30m" # dark gray text ActiveRecord::Migrator.migrate("#{Rails.root}/db/migrate") print "\033[0m" RSpec.configure do |config| config.use_transactional_fixtures = true config.use_instantiated_fixtures = false end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
dusen-0.2.1 | spec/rails-3.0/spec_helper.rb |
dusen-0.2.0 | spec/rails-3.0/spec_helper.rb |
dusen-0.1.0 | spec/rails-3.0/spec_helper.rb |