Sha256: 506073fd3299db2f606fa790774c93d293f94b9db7ab35a70ae7b5d06c090221

Contents?: true

Size: 353 Bytes

Versions: 3

Compression:

Stored size: 353 Bytes

Contents

module FactoryGirl
  class NullFactory
    attr_reader :definition

    def initialize
      @definition = Definition.new
    end

    delegate :defined_traits, :callbacks, :attributes, :to => :definition

    def compile; end
    def class_name; end
    def default_strategy; :create; end
    def evaluator_class; FactoryGirl::Evaluator; end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
factory_girl-2.4.2 lib/factory_girl/null_factory.rb
factory_girl-2.4.1 lib/factory_girl/null_factory.rb
factory_girl-2.4.0 lib/factory_girl/null_factory.rb