Sha256: 31c6be5d851fa7dc6d3c5afce4be649f9ba22886f46cbd1ee2dc4d227feb5a34

Contents?: true

Size: 907 Bytes

Versions: 2

Compression:

Stored size: 907 Bytes

Contents

# frozen_string_literal: true

require 'spree/testing_support/factory_bot'

module Spree
  module TestingSupport
    autoload :FactoryBot, "spree/testing_support/factory_bot"

    autoload :SEQUENCES, "spree/testing_support/factory_bot"
    autoload :FACTORIES, "spree/testing_support/factory_bot"

    def factory_bot_paths
      Spree::TestingSupport::FactoryBot.definition_file_paths
    end

    def check_factory_bot_version
      Spree::TestingSupport::FactoryBot.check_version
    end

    def load_all_factories
      Spree::TestingSupport::FactoryBot.add_paths_and_load!
    end

    deprecate(
      factory_bot_paths: "Spree::TestingSupport::FactoryBot.definition_file_paths",
      check_factory_bot_version: "Spree::TestingSupport::FactoryBot.check_version",
      load_all_factories: "Spree::TestingSupport::FactoryBot.add_paths_and_load!",
      deprecator: Spree::Deprecator
    )
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
solidus_core-3.0.0.rc2 lib/spree/testing_support.rb
solidus_core-2.11.5 lib/spree/testing_support.rb