Sha256: e18bd13ee42f2f9f904e427a4357e82fa34d0ff12bba9a7dc41aeabe05d0eb08

Contents?: true

Size: 693 Bytes

Versions: 3

Compression:

Stored size: 693 Bytes

Contents

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

# Set the default environment to sqlite3's in_memory database
ENV['RAILS_ENV'] ||= 'in_memory'
ENV['RAILS_ROOT'] = 'app_root'

# Load the Rails environment and testing framework
require "#{File.dirname(__FILE__)}/app_root/config/environment"
require 'rspec/rails'

# Load dependencies
require 'rspec_candy/all'

# Require support code
Dir["../shared/support/**/*.rb"].each {|f| require f}

# 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

3 entries across 3 versions & 1 rubygems

Version Path
rspec_candy-0.2.2 spec/rspec2/spec_helper.rb
rspec_candy-0.2.1 spec/rspec2/spec_helper.rb
rspec_candy-0.2.0 spec/rspec2/spec_helper.rb