[Rails5] Expected response to be a 200, but was 404
Note: add
rails5
to a branch name to trigger rails5 specific CI jobs.
https://gitlab.com/gitlab-org/gitlab-ce/-/jobs/76050067
Failures:
1) Projects::CommitsController GET show with file path valid branch, valid file should respond with 200
Failure/Error: it { is_expected.to respond_with(:success) }
Expected response to be a 200, but was 404
# ./spec/controllers/projects/commits_controller_spec.rb:26:in `block (5 levels) in <top (required)>'
2) Projects::CommitsController GET show when the ref name ends in .atom when the ref exists with the suffix renders as HTML
Failure/Error: expect(response).to be_success
expected `#<ActionDispatch::TestResponse:0x00005633a4ede508 @mon_owner=nil, @mon_count=0, @mon_mutex=#<Thread::...ders:0x00005633a4ec6048 @req=#<ActionController::TestRequest:0x00005633a4ede760 ...>>, @variant=[]>>.success?` to return true, got false
# ./spec/controllers/projects/commits_controller_spec.rb:75:in `block (5 levels) in <top (required)>'
Finished in 9 minutes 34 seconds (files took 22.18 seconds to load)
1063 examples, 2 failures, 1 pending
Failed examples:
rspec ./spec/controllers/projects/commits_controller_spec.rb:26 # Projects::CommitsController GET show with file path valid branch, valid file should respond with 200
rspec ./spec/controllers/projects/commits_controller_spec.rb:74 # Projects::CommitsController GET show when the ref name ends in .atom when the ref exists with the suffix renders as HTML