Commit 09dbf450 authored by Douglas Barbosa Alexandre's avatar Douglas Barbosa Alexandre

Merge branch...

Merge branch '295625-include-a-test-to-check-if-users-user-is-redirected-to-users-show' into 'master'

Add test to check if /users/User is redirected to /User

See merge request gitlab-org/gitlab!50651
parents 6ef8b05d ed408190
---
title: Add test to check if /users/User is redirected to /User
merge_request: 50651
author: Takuya Noguchi
type: other
......@@ -97,6 +97,14 @@ RSpec.describe UsersController do
end
end
describe 'GET /users/:username (deprecated user top)' do
it 'redirects to /user1' do
get '/users/user1'
expect(response).to redirect_to user_path('user1')
end
end
describe 'GET #activity' do
shared_examples_for 'renders the show template' do
it 'renders the show template' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment