mirror of
https://github.com/thoughtbot/factory_bot.git
synced 2022-11-09 11:43:51 -05:00
15 lines
325 B
Ruby
15 lines
325 B
Ruby
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 evaluator_class; FactoryGirl::Evaluator; end
|
|
end
|
|
end
|