Sha256: abc522e0d246802e9bf09d2786dddbac8808409d52ecc227adc1e6ea05518a7e

Contents?: true

Size: 438 Bytes

Versions: 7

Compression:

Stored size: 438 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

7 entries across 7 versions & 1 rubygems

Version Path
factory_bot-5.1.1 lib/factory_bot/null_factory.rb
factory_bot-5.1.0 lib/factory_bot/null_factory.rb
factory_bot-5.0.2 lib/factory_bot/null_factory.rb
factory_bot-5.0.1 lib/factory_bot/null_factory.rb
factory_bot-5.0.0 lib/factory_bot/null_factory.rb
factory_bot-5.0.0.rc2 lib/factory_bot/null_factory.rb
factory_bot-5.0.0.rc1 lib/factory_bot/null_factory.rb