module

FactoryBot::Syntax::Methods

Контейнер стратегийных методов (миксин в тестовые классы).

Instance methods

attributes_for(_name : String | Symbol, *_traits, **overrides) : Hash(String, FBValue)
attributes_for_list(_name : String | Symbol, _amount : Int32, *_traits, **overrides) : Array(Hash(String, FBValue))
attributes_for_pair(_name : String | Symbol, *_traits, **overrides) : Array(Hash(String, FBValue))
build(_name : String | Symbol, *_traits, **overrides, &block : Proc(Product, Nil)) : Product | Nil
build(_name : String | Symbol, *_traits, **overrides) : Product | Nil
build_list(_name : String | Symbol, _amount : Int32, *_traits, **overrides, &block : Proc(Product, Int32, Nil)) : Array(Product)
build_list(_name : String | Symbol, _amount : Int32, *_traits, **overrides) : Array(Product)
build_pair(_name : String | Symbol, *_traits, **overrides) : Array(Product)
build_stubbed(_name : String | Symbol, *_traits, **overrides, &block : Proc(Product, Nil)) : Product | Nil
build_stubbed(_name : String | Symbol, *_traits, **overrides) : Product | Nil
build_stubbed_list(_name : String | Symbol, _amount : Int32, *_traits, **overrides) : Array(Product)
build_stubbed_pair(_name : String | Symbol, *_traits, **overrides) : Array(Product)
create(_name : String | Symbol, *_traits, **overrides, &block : Proc(Product, Nil)) : Product | Nil
create(_name : String | Symbol, *_traits, **overrides) : Product | Nil
create_list(_name : String | Symbol, _amount : Int32, *_traits, **overrides, &block : Proc(Product, Int32, Nil)) : Array(Product)
create_list(_name : String | Symbol, _amount : Int32, *_traits, **overrides) : Array(Product)
create_pair(_name : String | Symbol, *_traits, **overrides) : Array(Product)
generate(_name : String | Symbol) : FBValue
generate_list(_name : String | Symbol, count : Int32) : Array(FBValue)