summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2014-04-08 14:30:57 +0200
committerAzul <azul@leap.se>2014-04-08 14:30:57 +0200
commit20197129459d90642c50c27e601ef13ece4a873b (patch)
treeb443b02026f924491d01baccb2c8ebcba70b1ea4
parent9776dd10fc60efde38946588d0955c406f6c1f5e (diff)
only load */test/factories from test/factories
prevent recursive loadign of test/factories.rb ** can be empty.
-rw-r--r--test/factories.rb2
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