Module: FactoryBotFactory
- Defined in:
- lib/factory_bot_factory.rb,
lib/factory_bot_factory/base.rb,
lib/factory_bot_factory/config.rb,
lib/factory_bot_factory/version.rb,
lib/factory_bot_factory/attribute.rb,
lib/factory_bot_factory/line_writer.rb,
lib/factory_bot_factory/factories/base_factory.rb,
lib/factory_bot_factory/factories/hash_factory.rb,
lib/factory_bot_factory/factories/model_factory.rb,
lib/factory_bot_factory/converters/nil_converter.rb,
lib/factory_bot_factory/converters/hash_converter.rb,
lib/factory_bot_factory/converters/string_converter.rb,
lib/factory_bot_factory/converters/numeric_converter.rb,
lib/factory_bot_factory/factories/open_struct_factory.rb
Defined Under Namespace
Modules: Converters
Classes: Attribute, Base, BaseFactory, Config, Error, FileExistsError, HashFactory, LineWriter, ModelFactory, NestedToDeepError, OpenStructFactory
Constant Summary
collapse
- VERSION =
"1.0.0"
Class Method Summary
collapse
Class Method Details
.build(*args) ⇒ Object
19
20
21
22
|
# File 'lib/factory_bot_factory.rb', line 19
def build(*args)
configure
Base.build(*args)
end
|
.config ⇒ Object
29
30
31
|
# File 'lib/factory_bot_factory.rb', line 29
def config
@_config ||= Config.new
end
|
24
25
26
27
|
# File 'lib/factory_bot_factory.rb', line 24
def configure
yield config if block_given?
config
end
|