module FactoryTrace::MonkeyPatches::DefinitionProxy

Public Instance Methods

factory(name, options = {}, &block) click to toggle source
# File lib/factory_trace/monkey_patches/definition_proxy.rb, line 4
def factory(name, options = {}, &block)
  @child_factories << [name, Helpers::Caller.location, options, block]
end
trait(name, &block) click to toggle source
# File lib/factory_trace/monkey_patches/definition_proxy.rb, line 8
def trait(name, &block)
  @definition.define_trait(FactoryBot::Trait.new(name, Helpers::Caller.location, &block))
end