What is a factory crusher used for? customization of objects for you?

Factorygirl task in a test environment for setting up objects used in a test?

+3
source share
1 answer

In short, yes.

Although it is a little more than that. It allows you to create model objects and their dependencies and gives you the ability to save these objects in your database or not, as well as create stub objects.

In addition, it becomes much more obvious what model objects you work with in your tests. Lamps, as a rule, hide this information, and you have no choice but to save these objects.

+8
source

Source: https://habr.com/ru/post/1780884/


All Articles