Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
a945ab6d
Commit
a945ab6d
authored
Jun 18, 2019
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove spec for legacy group routes
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
5bff14ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
38 deletions
+0
-38
ee/spec/routing/group_routing_spec.rb
ee/spec/routing/group_routing_spec.rb
+0
-38
No files found.
ee/spec/routing/group_routing_spec.rb
View file @
a945ab6d
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment