Use factory instead of using new directly. Feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6414#note_15765156
Showing
Please register or sign in to comment
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6414#note_15765156