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
cb497111
Commit
cb497111
authored
Nov 21, 2017
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update tests to match new legacy redirect logic
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
7e1321d0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
spec/ee/routing/group_routing_spec.rb
spec/ee/routing/group_routing_spec.rb
+1
-1
spec/requests/group_routing_spec.rb
spec/requests/group_routing_spec.rb
+1
-1
No files found.
spec/ee/routing/group_routing_spec.rb
View file @
cb497111
...
...
@@ -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
...
...
spec/requests/group_routing_spec.rb
View file @
cb497111
...
...
@@ -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
...
...
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