Skip to content
This repository

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

file 11 lines (10 sloc) 0.374 kb
1 2 3 4 5 6 7 8 9 10 11
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
Something went wrong with that request. Please try again.