lib/mingle/engine.rb in mingle-0.3.1 vs lib/mingle/engine.rb in mingle-0.4.0
- old
+ new
@@ -5,9 +5,13 @@
module Mingle
class Engine < ::Rails::Engine
isolate_namespace Mingle
+ initializer 'mingle.factories', after: 'factory_girl.set_factory_paths' do
+ FactoryGirl.definition_file_paths << File.expand_path('../../../spec/factories', __FILE__) if defined?(FactoryGirl)
+ end
+
config.eager_load_paths.delete_if do |path|
Pathname.new(path).split.last.to_s == 'jobs' && !defined? Sidekiq
end
config.generators do |g|