Sha256: 749c7052256c406d7b7ad12dce21f8a891083ab33010b84e960299656ec7983d
Contents?: true
Size: 651 Bytes
Versions: 11
Compression:
Stored size: 651 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' FileUtils.rm(Dir.glob("db/*.db"), :force => true) # Load the Rails environment and testing framework require "#{File.dirname(__FILE__)}/../app_root/config/environment" require 'rspec/rails' require 'rspec_candy/helpers' # 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
11 entries across 11 versions & 1 rubygems