diff --git a/lib/factory_girl.rb b/lib/factory_girl.rb index 11b7ec2d1..248171625 100644 --- a/lib/factory_girl.rb +++ b/lib/factory_girl.rb @@ -19,7 +19,9 @@ def Factory (name, attrs = {}) File.join(RAILS_ROOT, 'test', 'factories'), File.join(RAILS_ROOT, 'spec', 'factories') ] + Factory.find_definitions end +else + Factory.find_definitions end -Factory.find_definitions \ No newline at end of file