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:
parent
338105cef3
commit
6e523f0ed7
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue