Sha256: e5afe2a4fced0e8123cba9842a1712bf470be98e09d53914713dea3fea09d0c8

Contents?: true

Size: 445 Bytes

Versions: 2

Compression:

Stored size: 445 Bytes

Contents

module FactoryBot
  # @api private
  class NullFactory
    attr_reader :definition

    def initialize
      @definition = Definition.new(:null_factory)
    end

    delegate :defined_traits, :callbacks, :attributes, :constructor,
             :to_create, to: :definition

    def compile; end

    def class_name; end

    def evaluator_class; FactoryBot::Evaluator; end

    def hierarchy_class; FactoryBot::DefinitionHierarchy; end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
factory_bot-5.2.0 lib/factory_bot/null_factory.rb
factory_bot-5.1.2 lib/factory_bot/null_factory.rb