[Rails5] Fix `Expected response to be a <3XX: redirect>, but was a <401: Unauthorized>`
Note: add
rails5
to a branch name to trigger rails5 specific CI jobs.
https://gitlab.com/gitlab-org/gitlab-ce/-/jobs/67731865
4) UploadsController GET show when viewing a user avatar when signed in when the user is blocked redirects to the sign in page
Failure/Error: expect(response).to redirect_to(new_user_session_path)
Expected response to be a <3XX: redirect>, but was a <401: Unauthorized>
# ./spec/controllers/uploads_controller_spec.rb:169:in `block (6 levels) in <top (required)>'