Sha256: fe51773b337a1563e083ee10d2b71258662d71c30b6bfc89bf4c6d2a3ed62077
Contents?: true
Size: 737 Bytes
Versions: 1
Compression:
Stored size: 737 Bytes
Contents
$: << File.join(File.dirname(__FILE__), "/../../lib" ) ENV['RAILS_ENV'] ||= 'test' ENV['RAILS_ROOT'] = 'app_root' FileUtils.rm(Dir.glob("#{ENV['RAILS_ROOT']}/db/*.db"), :force => true) # Load the Rails environment and testing framework require "#{File.dirname(__FILE__)}/../app_root/config/environment" require 'rspec/rails' require 'database_cleaner' DatabaseCleaner.strategy = :truncation 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 = false config.use_instantiated_fixtures = false config.before(:each) do DatabaseCleaner.clean end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
consul-0.4.1 | spec/rails-3.2/spec/spec_helper.rb |