Class: FactoryBot::Syntax::Default::DSL

Inherits:
Object
  • Object
show all
Defined in:
lib/factory_bot/namespaced_factories.rb

Instance Method Summary collapse

Instance Method Details

#with_namespace(namespace, options = {}, &block) ⇒ Object



54
55
56
# File 'lib/factory_bot/namespaced_factories.rb', line 54

def with_namespace(namespace, options = {}, &block)
  FactoryBot::NamespacedFactories::NamespacedFactory.new(namespace, options).instance_exec(&block)
end