diff --git a/core/lib/spree/testing_support.rb b/core/lib/spree/testing_support.rb index ce93cec034c..1965ef74f3f 100644 --- a/core/lib/spree/testing_support.rb +++ b/core/lib/spree/testing_support.rb @@ -1,6 +1,12 @@ # frozen_string_literal: true require 'spree/testing_support/factory_bot' +require 'spree/deprecation' + +Spree::Deprecation.warn <<-WARN + Using `require 'spree/testing_support'` is deprecated and will be removed in + Solidus 4.0. +WARN module Spree module TestingSupport @@ -11,5 +17,6 @@ module TestingSupport def check_factory_bot_version Spree::TestingSupport::FactoryBot.check_version end + deprecate :check_factory_bot_version, deprecator: Spree::Deprecation end end diff --git a/core/lib/spree/testing_support/factory_bot.rb b/core/lib/spree/testing_support/factory_bot.rb index 7f990b5187e..68b10759247 100644 --- a/core/lib/spree/testing_support/factory_bot.rb +++ b/core/lib/spree/testing_support/factory_bot.rb @@ -30,6 +30,7 @@ def self.check_version MSG end end + deprecate :check_version, deprecator: Spree::Deprecation def self.add_definitions! ::FactoryBot.definition_file_paths.unshift(*definition_file_paths).uniq!