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
- "pending" feature to lint factories that are expected to be invalid
- Forwarding from one factory to another
- How to handle polymorphic associations using exclusive arc
- Don't allow duplicate traits
- Allow specification of default assocations depending on context
- singleton_method_added is being forwarded by FactoryBot::Evaluator
- Testing non-Rails apps with modules requires factories to define fully namespaced classes
- `modify` doesn't allow changing the class
- enum traits do not use prefix
- Object associations behave inconsistently inside factories
- Docs
- FactoryBot::AttributeAssigner#override_matches_declared_attribute?
- FactoryBot::AttributeAssigner#override_interrupts_association?
- FactoryBot::AttributeAssigner#attribute_names_overriden_by_alias
- FactoryBot::Strategy.lookup_strategy
- FactoryBot::Sequence::EnumeratorAdapter#initial_value
- FactoryBot::Sequence::EnumeratorAdapter#value
- FactoryBot::Sequence::EnumeratorAdapter#first_value
- FactoryBot::CallbacksObserver#completion_key_for
- FactoryBot::CallbacksObserver#record_completion!
- FactoryBot::CallbacksObserver#completed?