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

26 lines
487 B
Ruby
Raw Normal View History

$LOAD_PATH << File.join(File.dirname(__FILE__), '..', 'lib')
$LOAD_PATH << File.join(File.dirname(__FILE__))
2009-04-11 11:27:23 -04:00
require 'rubygems'
2010-11-11 15:33:45 -06:00
require 'rspec'
require 'rspec/autorun'
2009-04-11 11:27:23 -04:00
2012-03-09 16:14:06 -05:00
require "simplecov"
2009-04-11 11:27:23 -04:00
require 'factory_girl'
2011-08-12 22:06:10 -04:00
require "mocha"
require "bourne"
require "timecop"
2010-11-11 15:33:45 -06:00
2011-08-16 23:30:09 -04:00
Dir["spec/support/**/*.rb"].each { |f| require File.expand_path(f) }
2010-11-11 15:33:45 -06:00
RSpec.configure do |config|
2011-08-12 22:06:10 -04:00
config.mock_framework = :mocha
config.include DeclarationMatchers
config.after do
2012-02-17 17:48:55 -05:00
FactoryGirl.reload
end
2009-04-11 11:27:23 -04:00
end