Skip to content

Commit

Permalink
Opt-out the new factory behavior
Browse files Browse the repository at this point in the history
We don't want people that update solidus to use the new
behavior by default.
  • Loading branch information
elia authored and kennyadsl committed Feb 18, 2021
1 parent 0e7fe41 commit dbe45fe
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions core/lib/spree/core/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit dbe45fe

Please sign in to comment.