Sha256: cb790a0b7fec349421ed1db098902149be3f22bd105140bad723647cbc6a1531

Contents?: true

Size: 367 Bytes

Versions: 32

Compression:

Stored size: 367 Bytes

Contents

module FactoryGirl
  class NullFactory
    attr_reader :definition

    def initialize
      @definition = Definition.new
    end

    delegate :defined_traits, :callbacks, :attributes, :constructor, :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

32 entries across 27 versions & 3 rubygems

Version Path
challah-0.4.1 vendor/bundle/gems/factory_girl-2.5.1/lib/factory_girl/null_factory.rb
challah-0.4.0 vendor/bundle/gems/factory_girl-2.5.1/lib/factory_girl/null_factory.rb
challah-0.3.5 vendor/bundle/gems/factory_girl-2.5.1/lib/factory_girl/null_factory.rb
challah-0.3.4 vendor/bundle/gems/factory_girl-2.5.1/lib/factory_girl/null_factory.rb
challah-0.3.3 vendor/bundle/gems/factory_girl-2.5.1/lib/factory_girl/null_factory.rb
challah-0.3.2 vendor/bundle/gems/factory_girl-2.5.1/lib/factory_girl/null_factory.rb
challah-0.3.1 vendor/bundle/gems/factory_girl-2.5.1/lib/factory_girl/null_factory.rb
factory_girl-2.5.1 lib/factory_girl/null_factory.rb
challah-0.3.0 vendor/bundle/gems/factory_girl-2.5.0/lib/factory_girl/null_factory.rb
challah-0.2.1 vendor/bundle/gems/factory_girl-2.5.0/lib/factory_girl/null_factory.rb
challah-0.2.0 vendor/bundle/gems/factory_girl-2.5.0/lib/factory_girl/null_factory.rb
factory_girl-2.5.0 lib/factory_girl/null_factory.rb