Browse files

Load factories from /factories at the Rails root, just like the defau…

…lt definition_file_paths.
  • Loading branch information...
1 parent aadeb53 commit fa5095c5557593fd50569e8e6789b39bc6c84df4 @cgriego cgriego committed with joshuaclayton Aug 27, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/factory_girl/rails2.rb
View
1 lib/factory_girl/rails2.rb
@@ -1,5 +1,6 @@
Rails.configuration.after_initialize do
FactoryGirl.definition_file_paths = [
+ File.join(Rails.root, 'factories'),
File.join(Rails.root, 'test', 'factories'),
File.join(Rails.root, 'spec', 'factories')
]

0 comments on commit fa5095c

Please sign in to comment.