aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--spec/spec_helper.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index ea550e2..9d4bffe 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -23,9 +23,9 @@ end
def each_run
FactoryGirl.reload
ActiveSupport::Dependencies.clear
-
+
load_all 'spec/support/**/*.rb'
- load_all 'spec/factories/**/*.rb'
+ load_all 'spec/factories/**/*.rb' if FactoryGirl.factories.none?
end
# If spork is available in the Gemfile it'll be used but we don't force it.