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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
bde50885
Commit
bde50885
authored
Sep 16, 2012
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add routing specs for new routes
parent
5e1ef575
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
59 additions
and
0 deletions
+59
-0
spec/routing/project_routing_spec.rb
spec/routing/project_routing_spec.rb
+59
-0
No files found.
spec/routing/project_routing_spec.rb
View file @
bde50885
...
...
@@ -396,3 +396,62 @@ describe NotesController, "routing" do
let
(
:controller
)
{
'notes'
}
end
end
# TODO: Pending
#
# /:project_id/blame/*path
# /gitlabhq/blame/master/app/contexts/base_context.rb
# /gitlabhq/blame/test/branch/name/app/contexts/base_context.rb
#
# /:project_id/blob/*path
# /gitlabhq/blob/master/app/contexts/base_context.rb
# /gitlabhq/blob/test/branch/name/app/contexts/base_context.rb
#
# /:project_id/commit/:id
# /gitlabhq/commit/caef9ed1121a16ca0cc78715695daaa974271bfd
#
# /:project_id/commits
#
# /:project_id/commits/*path
# /gitlabhq/commits/master/app/contexts/base_context.rb
# /gitlabhq/commits/test/branch/name/app/contexts/base_context.rb
#
# /:project_id/raw/*path
# /gitlabhq/raw/master/app/contexts/base_context.rb
# /gitlabhq/raw/test/branch/name/app/contexts/base_context.rb
#
# /:project_id/tree/*path
# /gitlabhq/tree/master/app
# /gitlabhq/tree/test/branch/name/app
describe
"pending routing"
do
describe
"/:project_id/blame/:id"
do
it
"routes to a ref with a path"
do
get
(
"/gitlabhq/blame/master/app/models/project.rb"
).
should
route_to
(
'blame#show'
,
project_id:
'gitlabhq'
,
id:
'master/app/models/project.rb'
)
end
end
describe
"/:project_id/blob/:id"
do
it
"routes to a ref with a path"
do
get
(
"/gitlabhq/blob/master/app/models/project.rb"
).
should
route_to
(
'blob#show'
,
project_id:
'gitlabhq'
,
id:
'master/app/models/project.rb'
)
end
end
describe
"/:project_id/commit/:id"
do
it
"routes to a specific commit"
do
get
(
"/gitlabhq/commit/f4b1449"
).
should
route_to
(
'commit#show'
,
project_id:
'gitlabhq'
,
id:
'f4b1449'
)
get
(
"/gitlabhq/commit/f4b14494ef6abf3d144c28e4af0c20143383e062"
).
should
route_to
(
'commit#show'
,
project_id:
'gitlabhq'
,
id:
'f4b14494ef6abf3d144c28e4af0c20143383e062'
)
end
end
describe
"/:project_id/raw/:id"
do
it
"routes to a ref with a path"
do
get
(
"/gitlabhq/raw/master/app/models/project.rb"
).
should
route_to
(
'raw#show'
,
project_id:
'gitlabhq'
,
id:
'master/app/models/project.rb'
)
end
end
describe
"/:project_id/tree/:id"
do
it
"routes to a ref with a path"
do
get
(
"/gitlabhq/tree/master/app/models/project.rb"
).
should
route_to
(
'tree#show'
,
project_id:
'gitlabhq'
,
id:
'master/app/models/project.rb'
)
end
end
end
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