spec/rails-3.2/spec/spec_helper.rb in consul-0.4.2 vs spec/rails-3.2/spec/spec_helper.rb in consul-0.5.0
- old
+ new
@@ -1,19 +1,18 @@
$: << 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)
+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'
# 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"