1
0
Fork 0
mirror of https://github.com/thoughtbot/factory_bot.git synced 2022-11-09 11:43:51 -05:00
thoughtbot--factory_bot/spec/spec_helper.rb
2011-08-19 17:21:54 -04:00

22 lines
480 B
Ruby

$LOAD_PATH << File.join(File.dirname(__FILE__), '..', 'lib')
$LOAD_PATH << File.join(File.dirname(__FILE__))
require 'rubygems'
require 'rspec'
require 'rspec/autorun'
require 'factory_girl'
require "mocha"
require "bourne"
Dir["spec/support/**/*.rb"].each { |f| require File.expand_path(f) }
RSpec.configure do |config|
config.mock_framework = :mocha
config.after do
FactoryGirl.factories.clear
FactoryGirl.sequences.clear
FactoryGirl.traits.clear
end
end