Commit cb497111 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Update tests to match new legacy redirect logic

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 7e1321d0
......@@ -28,7 +28,7 @@ describe 'Group routing', "routing" do
describe legacy_reserved_path do
it_behaves_like 'redirecting a legacy path',
"/groups/complex.group-namegit/#{legacy_reserved_path}",
"/groups/complex.group-namegit/-/#{legacy_reserved_path}/" do
"/groups/complex.group-namegit/-/#{legacy_reserved_path}" do
let!(:parent) { create(:group, path: 'complex.group-namegit') }
let(:resource) { create(:group, parent: parent, path: legacy_reserved_path) }
end
......
......@@ -7,7 +7,7 @@ describe 'Deprecated boards paths' do
it 'redirects to boards page' do
get('/groups/gitlabhq/boards')
expect(response).to redirect_to('/groups/gitlabhq/-/boards/')
expect(response).to redirect_to('/groups/gitlabhq/-/boards')
end
it 'redirects to the boards page with additional params' 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