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
2011-12-19 21:41:10 -05:00

15 lines
300 B
Ruby

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
end
end