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
Boxiang Sun
gitlab-ce
Commits
d2284b41
Commit
d2284b41
authored
Jul 17, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix routing specs
parent
9ea5766c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
8 deletions
+13
-8
spec/routing/project_routing_spec.rb
spec/routing/project_routing_spec.rb
+13
-8
No files found.
spec/routing/project_routing_spec.rb
View file @
d2284b41
...
@@ -126,14 +126,6 @@ end
...
@@ -126,14 +126,6 @@ end
# archive_project_repository GET /:project_id/repository/archive(.:format) projects/repositories#archive
# archive_project_repository GET /:project_id/repository/archive(.:format) projects/repositories#archive
# edit_project_repository GET /:project_id/repository/edit(.:format) projects/repositories#edit
# edit_project_repository GET /:project_id/repository/edit(.:format) projects/repositories#edit
describe
Projects
::
RepositoriesController
,
"routing"
do
describe
Projects
::
RepositoriesController
,
"routing"
do
it
"to #branches"
do
get
(
"/gitlabhq/repository/branches"
).
should
route_to
(
'projects/repositories#branches'
,
project_id:
'gitlabhq'
)
end
it
"to #tags"
do
get
(
"/gitlabhq/repository/tags"
).
should
route_to
(
'projects/repositories#tags'
,
project_id:
'gitlabhq'
)
end
it
"to #archive"
do
it
"to #archive"
do
get
(
"/gitlabhq/repository/archive"
).
should
route_to
(
'projects/repositories#archive'
,
project_id:
'gitlabhq'
)
get
(
"/gitlabhq/repository/archive"
).
should
route_to
(
'projects/repositories#archive'
,
project_id:
'gitlabhq'
)
end
end
...
@@ -143,6 +135,19 @@ describe Projects::RepositoriesController, "routing" do
...
@@ -143,6 +135,19 @@ describe Projects::RepositoriesController, "routing" do
end
end
end
end
describe
Projects
::
BranchesController
,
"routing"
do
it
"to #branches"
do
get
(
"/gitlabhq/branches"
).
should
route_to
(
'projects/branches#index'
,
project_id:
'gitlabhq'
)
end
end
describe
Projects
::
TagsController
,
"routing"
do
it
"to #tags"
do
get
(
"/gitlabhq/tags"
).
should
route_to
(
'projects/tags#index'
,
project_id:
'gitlabhq'
)
end
end
# project_deploy_keys GET /:project_id/deploy_keys(.:format) deploy_keys#index
# project_deploy_keys GET /:project_id/deploy_keys(.:format) deploy_keys#index
# POST /:project_id/deploy_keys(.:format) deploy_keys#create
# POST /:project_id/deploy_keys(.:format) deploy_keys#create
# new_project_deploy_key GET /:project_id/deploy_keys/new(.:format) deploy_keys#new
# new_project_deploy_key GET /:project_id/deploy_keys/new(.:format) deploy_keys#new
...
...
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