You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
factory_bot is a fixtures replacement with a straightforward definition syntax, support for multiple build strategies (saved instances, unsaved instances, attribute hashes, and stubbed objects), and support for multiple factories for the same class (user, admin_user, and so on), including factory inheritance.
_[Interested in the history of the project name?][NAME]_
9
-
10
-
11
-
### Transitioning from factory\_girl?
10
+
Interested in the history of the project name? You can find the history [here](https://github.com/thoughtbot/factory_bot/blob/main/NAME.md)
12
11
13
-
Check out the [guide](https://github.com/thoughtbot/factory_bot/blob/v4.9.0/UPGRADE_FROM_FACTORY_GIRL.md).
12
+
Transitioning from factory\_girl? Check out the [upgrade guide](https://github.com/thoughtbot/factory_bot/blob/4-9-0-stable/UPGRADE_FROM_FACTORY_GIRL.md).
14
13
15
-
16
-
Documentation
17
-
-------------
14
+
## Documentation
18
15
19
16
See our extensive reference, guides, and cookbook in [the factory_bot book][].
20
17
@@ -27,8 +24,7 @@ Rails, see [the factory_bot wiki][].
@@ -42,24 +38,20 @@ To install the gem manually from your shell, run:
42
38
gem install factory_bot
43
39
```
44
40
45
-
Supported Ruby versions
46
-
-----------------------
41
+
## Supported Ruby versions
47
42
48
-
Supported Ruby versions are listed in [`.github/workflows/build.yml`](https://github.com/thoughtbot/factory_bot/blob/main/.github/workflows/build.yml)
43
+
Supported Ruby versions are listed in `.github/workflows/build.yml` ([source](https://github.com/thoughtbot/factory_bot/blob/main/.github/workflows/build.yml))
*[FactoryTrace](https://github.com/djezzzl/factory_trace) - helps to find unused factories and traits.
65
57
*[ruby-lsp-factory_bot](https://github.com/donny741/ruby-lsp-factory_bot) / [ruby-lsp-rails-factory-bot](https://github.com/johansenja/ruby-lsp-rails-factory-bot) - integration with [ruby-lsp](https://github.com/Shopify/ruby-lsp) to provide intellisense
0 commit comments