Module: FactoryManager
- Defined in:
- lib/factory_manager.rb,
lib/factory_manager/generator.rb
Overview
A factory manager of factory bots.
Defined Under Namespace
Classes: Generator
Class Method Summary collapse
-
.build { ... } ⇒ Object
Initializes and builds a new build generator.
-
.create { ... } ⇒ Object
Initializes and creates a new create generator.
Class Method Details
.build { ... } ⇒ Object
Initializes and builds a new build generator.
10 11 12 13 14 |
# File 'lib/factory_manager.rb', line 10 def self.build(&block) Generator .new(strategy: :build) .generate(&block) end |
.create { ... } ⇒ Object
Initializes and creates a new create generator.
19 20 21 22 23 |
# File 'lib/factory_manager.rb', line 19 def self.create(&block) Generator .new(strategy: :create) .generate(&block) end |