1
0
Fork 0
mirror of https://github.com/thoughtbot/factory_bot.git synced 2022-11-09 11:43:51 -05:00
thoughtbot--factory_bot/lib/factory_girl/null_factory.rb
2012-03-16 16:43:23 -04:00

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