Sha256: 88720ca4c2d485128cf696b8b06e6b5a8c7ebc0c4393f675bdb3205724aff8e4

Contents?: true

Size: 692 Bytes

Versions: 11

Compression:

Stored size: 692 Bytes

Contents

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

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

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"

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

11 entries across 11 versions & 1 rubygems

Version Path
consul-0.11.0 spec/rails-3.2/spec/spec_helper.rb
consul-0.10.2 spec/rails-3.2/spec/spec_helper.rb
consul-0.10.1 spec/rails-3.2/spec/spec_helper.rb
consul-0.10.0 spec/rails-3.2/spec/spec_helper.rb
consul-0.9.1 spec/rails-3.2/spec/spec_helper.rb
consul-0.9.0 spec/rails-3.2/spec/spec_helper.rb
consul-0.8.0 spec/rails-3.2/spec/spec_helper.rb
consul-0.7.0 spec/rails-3.2/spec/spec_helper.rb
consul-0.6.1 spec/rails-3.2/spec/spec_helper.rb
consul-0.6.0 spec/rails-3.2/spec/spec_helper.rb
consul-0.5.0 spec/rails-3.2/spec/spec_helper.rb