Sha256: 9bdae1248a3e41eae841043a95245327ba0504fffd37caa533ed7aca06363d17

Contents?: true

Size: 660 Bytes

Versions: 5

Compression:

Stored size: 660 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'

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'

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
end

Version data entries

5 entries across 5 versions & 1 rubygems

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