mirror of
https://github.com/thoughtbot/factory_bot.git
synced 2022-11-09 11:43:51 -05:00
0e7c6e60f1
This runs all of the automatic cops that came in since rubocop 0.68. None of these changes were manual.
21 lines
445 B
Ruby
21 lines
445 B
Ruby
module FactoryBot
|
|
# @api private
|
|
class NullFactory
|
|
attr_reader :definition
|
|
|
|
def initialize
|
|
@definition = Definition.new(:null_factory)
|
|
end
|
|
|
|
delegate :defined_traits, :callbacks, :attributes, :constructor,
|
|
:to_create, to: :definition
|
|
|
|
def compile; end
|
|
|
|
def class_name; end
|
|
|
|
def evaluator_class; FactoryBot::Evaluator; end
|
|
|
|
def hierarchy_class; FactoryBot::DefinitionHierarchy; end
|
|
end
|
|
end
|