Use `create(:ci_pipeline, project: project)`(Factory) instead of `project.pipelines.create` in spec

The following discussion from gitlab-ce!13194 should be addressed:

  • @dosuken123 started a discussion:

    We should use create(ci_pipeline, ...) instead of project.pipelines.create. This is painful when we introduce a new validates present: true.

/cc @godfat

Assignee Loading
Time tracking Loading