Class: FactoryBot::Syntax::Default::DSL
- Inherits:
-
Object
- Object
- FactoryBot::Syntax::Default::DSL
- 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, = {}, &block) FactoryBot::NamespacedFactories::NamespacedFactory.new(namespace, ).instance_exec(&block) end |