2011-10-28 21:23:06 -04:00
|
|
|
module FactoryGirl
|
2012-05-05 02:31:31 -04:00
|
|
|
# @api private
|
2011-10-28 21:23:06 -04:00
|
|
|
class NullFactory
|
|
|
|
attr_reader :definition
|
|
|
|
|
|
|
|
def initialize
|
2012-06-12 23:11:55 -04:00
|
|
|
@definition = Definition.new(:null_factory)
|
2011-10-28 21:23:06 -04:00
|
|
|
end
|
|
|
|
|
2012-05-11 11:43:08 -04:00
|
|
|
delegate :defined_traits, :callbacks, :attributes, :constructor,
|
2012-06-12 23:11:55 -04:00
|
|
|
:to_create, to: :definition
|
2011-10-28 21:23:06 -04:00
|
|
|
|
|
|
|
def compile; end
|
|
|
|
def class_name; end
|
2012-01-03 09:31:40 -05:00
|
|
|
def evaluator_class; FactoryGirl::Evaluator; end
|
2012-07-11 21:32:03 -04:00
|
|
|
def hierarchy_class; FactoryGirl::DefinitionHierarchy; end
|
2011-10-28 21:23:06 -04:00
|
|
|
end
|
|
|
|
end
|