Skip to content
This repository was archived by the owner on May 29, 2018. It is now read-only.
This repository was archived by the owner on May 29, 2018. It is now read-only.

Use .build for dependent factories #105

@sauloperez

Description

@sauloperez

Investigate whether we can replace .create with .build to build a factory's dependencies in https://github.com/coopdevs/katuma/blob/develop/engines/suppliers/spec/factories.rb.

Now, when building an order factory, we persist a user an a group in the database, no matter what FactoryGirl method was used; either .build or .create. This may become a performance bottleneck when creating many orders and also looses the point of FactoryGirl's .build or even .build_stubbed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions