Sha256: 2e869591239271331332323d16d49764179ba8ed392d3271f3ee4a34aa94857b
Contents?: true
Size: 755 Bytes
Versions: 4
Compression:
Stored size: 755 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' # Load dependencies # require 'has_defaults' # Require support code # Dir["../shared/support/**/*.rb"].each {|f| require f} 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 = false config.use_instantiated_fixtures = false end
Version data entries
4 entries across 4 versions & 1 rubygems