Sha256: 8e3e9737bb3cd5ca0b24e6efc9f142c037e13f0721081643d6ff16c7d3690049

Contents?: true

Size: 701 Bytes

Versions: 5

Compression:

Stored size: 701 Bytes

Contents

$: << File.join(File.dirname(__FILE__), "/../../lib" )

ENV['RAILS_ENV'] ||= 'test'
ENV['RAILS_ROOT'] = 'app_root'

FileUtils.rm(Dir.glob("app_root/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"

RSpec.configure do |config|
  config.use_transactional_fixtures = true
  config.use_instantiated_fixtures  = false
  #config.before(:each) do
  #  DatabaseCleaner.clean
  #end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
consul-0.12.2 spec/rails-3.2/spec/spec_helper.rb
consul-0.12.1 spec/rails-3.2/spec/spec_helper.rb
consul-0.12.0 spec/rails-3.2/spec/spec_helper.rb
consul-0.11.2 spec/rails-3.2/spec/spec_helper.rb
consul-0.11.1 spec/rails-3.2/spec/spec_helper.rb