
factory_bot
Ruby library for defining factories that build test data objects, a replacement for fixtures.
thoughtbot.github.io/factory_bot/repositorydocs
factory_bot is a Ruby library for defining factories, which build test objects from one definition with several build strategies: saved, unsaved, attribute hashes and stubs. It is installed as a gem, and its reference is a book published on GitHub Pages. Rails and RSpec are supported through separate integrations that the README points to.
Worth knowing
The getting-started guide in the repository is marked deprecated.
Sources
- 2026-11-08: links
thoughtbot.github.io/factory_bot/ - 2026-11-08: links, Categories, Written in, License, GitHub stars
api.github.com/repos/thoughtbot/factory_bot - 2026-11-08: Maintainer
github.com/thoughtbot/factory_bot/blob/main/LICENSE - 2026-11-08: First release
api.github.com/repos/thoughtbot/factory_bot/commits/0a6a54c6b95112e0bc5a691d9e1ef2a684a3cec5 - 2026-11-08: Runtime, Install with
github.com/thoughtbot/factory_bot/blob/main/README.md - 2026-11-08: Minimum runtime
github.com/thoughtbot/factory_bot/blob/v6.6.0/factory_bot.gemspec - 2026-11-08: Current major version, Last release
api.github.com/repos/thoughtbot/factory_bot/releases/latest - 2026-11-08: Contributors
api.github.com/repos/thoughtbot/factory_bot/contributors?per_page=1 - 2026-11-08: Dependent packages, Dependent repositories
packages.ecosyste.ms/api/v1/registries/rubygems.org/packages/factory_bot