factory_bot
factory_bot copied to clipboard
A library for setting up Ruby objects as test data.
### Problem this feature will solve Sometimes, when creating a new record with Factory Bot, we believe a trait exists, but it doesn't. That can happen because it was written...
[Ruby 3.0 reached EOL on April 2024](https://www.ruby-lang.org/en/downloads/branches/), but we're still running that version on CI:  Editing the workflow build file to remove 3.0 should...
### Description Hello! I was reading the [documentation](https://github.com/thoughtbot/factory_bot/blob/main/GETTING_STARTED.md#initial-value) on restricting the sequence to an initial starting value. Following the documentation as written has no effect. ### Reproduction Steps ``` require...
This has been a recurring issue that has not been documented in one single place. There are workarounds in several issues. This PR attempts to have a single place where...
During Open Summit 2024, we noticed that we don't have a section in the README that helps beginners with the basics of contributing to Factory Bot. The [existing documentation](https://github.com/thoughtbot/factory_bot/blob/main/CONTRIBUTING.md) might...