Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…lt definition_file_paths.
  • Loading branch information...
commit fa5095c5557593fd50569e8e6789b39bc6c84df4 1 parent aadeb53
Chris Griego cgriego authored joshuaclayton committed
Showing with 1 addition and 0 deletions.
  1. +1 −0  lib/factory_girl/rails2.rb
1  lib/factory_girl/rails2.rb
View
@@ -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')
]
Please sign in to comment.
Something went wrong with that request. Please try again.