summaryrefslogtreecommitdiff
path: root/lib/solidus_subscriptions/testing_support/factories.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/solidus_subscriptions/testing_support/factories.rb')
-rw-r--r--lib/solidus_subscriptions/testing_support/factories.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/solidus_subscriptions/testing_support/factories.rb b/lib/solidus_subscriptions/testing_support/factories.rb
new file mode 100644
index 0000000..6cafa63
--- /dev/null
+++ b/lib/solidus_subscriptions/testing_support/factories.rb
@@ -0,0 +1,5 @@
+require 'factory_girl'
+require 'spree/testing_support/factories'
+
+factory_path = "#{File.dirname(__FILE__)}/factories/**/*_factory.rb"
+Dir[factory_path].each { |f| require File.expand_path(f) }