factory_bot
factory_bot copied to clipboard
A library for setting up Ruby objects as test data.
**NOTE** — this is dependent on the `refactor-internal-module` branch #1772 The `StrategySyntaxMethodRegistrar` doesn't need to be instantiated (and doesn't need to be a class) to perform the behavior it implements....
This is an experiment with refactoring some of the sprawl of the root/core FactoryBot module. - previously it was necessary for developers to discover that the files for aliases, find...
The work performed in `FactoryBot::EvaluatorClassDefiner` can be done without creating an instance of the class. The code is rewritten in a more functional manner with a module.