Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

11 lines (10 sloc) 0.374 kb
config.gem 'thoughtbot-factory_girl', :lib => 'factory_girl', :source => 'http://gems.github.com'
config.after_initialize do
%w(test spec).each do |dir|
factories = File.join(RAILS_ROOT, dir, 'factories.rb')
require factories if File.exists?(factories)
Dir[File.join(RAILS_ROOT, dir, 'factories', '*.rb')].each do |file|
require file
end
end
end
Jump to Line
Something went wrong with that request. Please try again.