Releases: BillyRuffian/faker_maker
Releases · BillyRuffian/faker_maker
Factory Namespacing Classes
All factory classes are now created in the FakerMaker::Factory namespace
Simpler factory embedding
Easier factory embedding
FakerMaker.factory :item do
name { Faker::Commerce.product_name }
price { Faker::Commerce.price }
end
FakerMaker.factory :basket do
items( has: 10, factory: :item )
endChaos mode
FM factories can build objects with better optional fields to better test your APIs.
v1.3.0 audit history
FakerMaker now, optionally, can stream out a record of all models it creates. Ruby 3+ only from this release onwards.
V1.2.1
Fixed an issue where a naming scheme would break field-value omission when there was more than one attribute attached to a factory.
V1.2.0
Per factory naming of output in json strings
Merge pull request #41 from BillyRuffian/feature/json_naming_strategy per-factory json naming
Bug fix
Fixed: Factories were not always instantiating a new instance on build
Lifecycle hooks
Optional lifecycle hooks have been added to factories when created instances
Allow factories to be closed
Adds the ability close a factory and allow it's redefinition
shut!(name)shut_all!