Skip to content

Commit

Permalink
Load factories from /factories at the Rails root, just like the defau…
Browse files Browse the repository at this point in the history
…lt definition_file_paths.
  • Loading branch information
cgriego authored and joshuaclayton committed Aug 31, 2011
1 parent aadeb53 commit fa5095c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions 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')
]
Expand Down

0 comments on commit fa5095c

Please sign in to comment.