From dbe45fee0117d2fb5285111fb660dacf63d250ab Mon Sep 17 00:00:00 2001 From: Elia Schito Date: Wed, 17 Feb 2021 17:28:05 +0100 Subject: [PATCH] Opt-out the new factory behavior We don't want people that update solidus to use the new behavior by default. --- core/lib/spree/core/engine.rb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/core/lib/spree/core/engine.rb b/core/lib/spree/core/engine.rb index 71591d28bdc..05d66a52d95 100644 --- a/core/lib/spree/core/engine.rb +++ b/core/lib/spree/core/engine.rb @@ -69,13 +69,13 @@ class Engine < ::Rails::Engine end end - if defined?(FactoryBotRails) - initializer "spree.factory_bot.set_factory_paths", after: "factory_bot.set_factory_paths" do - require "spree/testing_support/factory_bot" - Spree::TestingSupport::FactoryBot.check_version - Spree::TestingSupport::FactoryBot.add_definitions! - end - end + # if defined?(FactoryBotRails) + # initializer "spree.factory_bot.set_factory_paths", after: "factory_bot.set_factory_paths" do + # require "spree/testing_support/factory_bot" + # Spree::TestingSupport::FactoryBot.check_version + # Spree::TestingSupport::FactoryBot.add_definitions! + # end + # end end end end