[Rails5] expected the response to have status code :ok but it was 404
Note: add
rails5
to a branch name to trigger rails5 specific CI jobs.
https://gitlab.com/gitlab-org/gitlab-ce/-/jobs/75292419
1) Projects::ArtifactsController GET file when the file is served through Rails when the file exists renders the file view
Failure/Error: expect(response).to have_gitlab_http_status(:ok)
expected the response to have status code :ok but it was 404. The response was:
# ./spec/controllers/projects/artifacts_controller_spec.rb:79:in `block (5 levels) in <top (required)>'
2) Projects::ArtifactsController GET file when the project is private does not redirect the request
Failure/Error: expect(response).to have_gitlab_http_status(:ok)
expected the response to have status code :ok but it was 404. The response was:
# ./spec/controllers/projects/artifacts_controller_spec.rb:107:in `block (4 levels) in <top (required)>'