Sha256: 621b8472ce00e42b5f8eae4d1a28e7fa4978c3aa2e2830799cbde2a0a1c29f57
Contents?: true
Size: 665 Bytes
Versions: 2
Compression:
Stored size: 665 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' require 'rspec_candy/helpers' 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
consul-0.4.2 | spec/rails-3.0/spec/spec_helper.rb |
consul-0.4.1 | spec/rails-3.0/spec/spec_helper.rb |