Improve spec for Gitlab::Ci::Status::Pipeline::Factory

Is there a way to write these tests without conditionals?

https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/21767#note_106802968