Commit ed408190 authored by Takuya Noguchi's avatar Takuya Noguchi

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

Signed-off-by: default avatarTakuya Noguchi <takninnovationresearch@gmail.com>
parent 556f7a25
---
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