diff options
author | Azul <azul@leap.se> | 2014-04-08 14:30:57 +0200 |
---|---|---|
committer | Azul <azul@leap.se> | 2014-04-08 14:30:57 +0200 |
commit | 20197129459d90642c50c27e601ef13ece4a873b (patch) | |
tree | b443b02026f924491d01baccb2c8ebcba70b1ea4 /test | |
parent | 9776dd10fc60efde38946588d0955c406f6c1f5e (diff) |
only load */test/factories from test/factories
prevent recursive loadign of test/factories.rb ** can be empty.
Diffstat (limited to 'test')
-rw-r--r-- | test/factories.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/factories.rb b/test/factories.rb index 98bb39b..980e2aa 100644 --- a/test/factories.rb +++ b/test/factories.rb @@ -1,4 +1,4 @@ -Dir.glob(Rails.root.join('**','test','factories.rb')) do |factory_file| +Dir.glob(Rails.root.join('*','test','factories.rb')) do |factory_file| require factory_file end FactoryGirl.define do |