factory_girl
https://github.com/thoughtbot/factory_girl
Ruby
A library for setting up Ruby objects as test data.
Triage Issues!
When you volunteer to triage issues, you'll receive an email each day with a link to an open issue that needs help in this project. You'll also receive instructions on how to triage issues.
Triage Docs!
Receive a documented method or class from your favorite GitHub repos in your inbox every day. If you're really pro, receive undocumented methods or classes and supercharge your commit history.
18 Subscribers
Add a CodeTriage badge to factory_girl
Help out
- Issues
- Associations with Rails Engine lead to ActiveRecord::RecordInvalid
- Raise an error if `sequence` is defined for attribute with auto-incrementing sequence in the DB
- DefinitionProxy#method_missing: Forward given block to #association
- Question: Possible to get reference to the build_class from initialize_with?
- `before(:create)` not executed in expected order
- Cannot create Factory with multiple traits got (ArgumentError Exception: wrong number of arguments (given 1, expected 0)) Ruby 3.0, Rails 6.1.72, factory_bot_rails 6.1.0 #408
- Linting `traits: true` on nested factories made from traits causes those traits to be called twice in one build
- documentation support for ActiveStorage attachments
- Invalid Boolean value being stored when enabling eager_load = true in Test Env
- Dynamically define unique methods for each factory
- Docs