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 ofproject.pipelines.create. This is painful when we introduce a newvalidates present: true.
/cc @godfat