1
0
Fork 0
mirror of https://github.com/thoughtbot/factory_bot_rails.git synced 2022-11-09 11:49:18 -05:00

Follows changes introduced in factory_girl (Factory class -> FactoryGirl module)

This commit is contained in:
Balint Erdi 2010-08-25 22:23:47 +08:00 committed by Joe Ferris
parent 338105cef3
commit 6e523f0ed7

View file

@ -1,14 +1,14 @@
require 'factory_girl'
require 'rails'
class Factory
module FactoryGirl
class Railtie < Rails::Railtie
config.after_initialize do
Factory.definition_file_paths = [
FactoryGirl.definition_file_paths = [
File.join(Rails.root, 'test', 'factories'),
File.join(Rails.root, 'spec', 'factories')
]
Factory.find_definitions
FactoryGirl.find_definitions
end
end
end