Sha256: a04f0c1d6a9d713ed2140159b56a37b0cb9e1073f3c1b35a18bff2b56f314ea6

Contents?: true

Size: 908 Bytes

Versions: 49

Compression:

Stored size: 908 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::Deprecation
    )
  end
end

Version data entries

49 entries across 49 versions & 1 rubygems

Version Path
solidus_core-3.2.0.alpha lib/spree/testing_support.rb
solidus_core-3.0.7 lib/spree/testing_support.rb
solidus_core-2.11.17 lib/spree/testing_support.rb
solidus_core-3.1.7 lib/spree/testing_support.rb
solidus_core-2.11.16 lib/spree/testing_support.rb
solidus_core-3.0.6 lib/spree/testing_support.rb
solidus_core-3.1.6 lib/spree/testing_support.rb
solidus_core-2.11.15 lib/spree/testing_support.rb
solidus_core-2.11.14 lib/spree/testing_support.rb
solidus_core-3.0.5 lib/spree/testing_support.rb
solidus_core-3.1.5 lib/spree/testing_support.rb
solidus_core-2.11.13 lib/spree/testing_support.rb
solidus_core-3.0.4 lib/spree/testing_support.rb
solidus_core-3.1.4 lib/spree/testing_support.rb
solidus_core-2.11.12 lib/spree/testing_support.rb
solidus_core-3.0.3 lib/spree/testing_support.rb
solidus_core-3.1.3 lib/spree/testing_support.rb
solidus_core-3.1.2 lib/spree/testing_support.rb
solidus_core-3.1.1 lib/spree/testing_support.rb
solidus_core-3.1.0 lib/spree/testing_support.rb