Commit a945ab6d authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Remove spec for legacy group routes

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 5bff14ff
......@@ -17,44 +17,6 @@ describe 'Group routing', "routing" do
end
end
describe 'legacy redirection' do
%w(analytics
boards
ldap
ldap_group_links
notification_setting
audit_events
pipeline_quota hooks).each do |legacy_reserved_path|
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
let!(:parent) { create(:group, path: 'complex.group-namegit') }
let(:resource) { create(:group, parent: parent, path: legacy_reserved_path) }
end
end
end
context 'multiple redirects' do
include RSpec::Rails::RequestExampleGroup
let!(:parent) { create(:group, path: 'complex.group-namegit') }
it 'follows multiple redirects' do
expect(get('/groups/complex.group-namegit/boards/issues'))
.to redirect_to('/groups/complex.group-namegit/-/boards/issues')
end
it 'does not redirect when the nested group exists' do
boards_group = create(:group, path: 'boards', parent: parent)
create(:group, path: 'issues', parent: boards_group)
expect(get('/groups/complex.group-namegit/boards/issues'))
.to eq(200)
end
end
end
describe 'security' do
it 'shows group dashboard' do
allow(Group).to receive(:find_by_full_path).with('gitlabhq', any_args).and_return(true)
......
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