Sha256: e4fab2d227ce0fa32828d758b757dbbc8c573d83b4b3ad867fba7c7a85152386
Contents?: true
Size: 912 Bytes
Versions: 1
Compression:
Stored size: 912 Bytes
Contents
ENV["RAILS_ENV"] ||= 'test' require File.expand_path("../dummy/config/environment", __FILE__) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) $LOAD_PATH.unshift(File.dirname(__FILE__)) require 'rails/all' require 'sqlite3' require 'rspec' require 'rspec/rails' require 'factory_girl_rails' FactoryGirl.definition_file_paths = %w(spec/factories) require 'database_cleaner' require 'shoulda-matchers' require 'chalk_dust' require 'private_person' # Requires supporting files with custom matchers and macros, etc, # in ./support/ and its subdirectories. Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f} RSpec.configure do |config| config.before(:suite) do DatabaseCleaner.strategy = :transaction DatabaseCleaner.clean_with(:deletion) end config.before(:each) do DatabaseCleaner.start end config.after(:each) do DatabaseCleaner.clean end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
private_person-0.3.1 | spec/spec_helper.rb |