Commit d2284b4112b31ae4e2301a8433bb64b40fdad80f
1 parent
9ea5766c
Exists in
master
and in
4 other branches
Fix routing specs
Showing
1 changed file
with
13 additions
and
8 deletions
Show diff stats
spec/routing/project_routing_spec.rb
| ... | ... | @@ -126,14 +126,6 @@ end |
| 126 | 126 | # archive_project_repository GET /:project_id/repository/archive(.:format) projects/repositories#archive |
| 127 | 127 | # edit_project_repository GET /:project_id/repository/edit(.:format) projects/repositories#edit |
| 128 | 128 | describe Projects::RepositoriesController, "routing" do |
| 129 | - it "to #branches" do | |
| 130 | - get("/gitlabhq/repository/branches").should route_to('projects/repositories#branches', project_id: 'gitlabhq') | |
| 131 | - end | |
| 132 | - | |
| 133 | - it "to #tags" do | |
| 134 | - get("/gitlabhq/repository/tags").should route_to('projects/repositories#tags', project_id: 'gitlabhq') | |
| 135 | - end | |
| 136 | - | |
| 137 | 129 | it "to #archive" do |
| 138 | 130 | get("/gitlabhq/repository/archive").should route_to('projects/repositories#archive', project_id: 'gitlabhq') |
| 139 | 131 | end |
| ... | ... | @@ -143,6 +135,19 @@ describe Projects::RepositoriesController, "routing" do |
| 143 | 135 | end |
| 144 | 136 | end |
| 145 | 137 | |
| 138 | +describe Projects::BranchesController, "routing" do | |
| 139 | + it "to #branches" do | |
| 140 | + get("/gitlabhq/branches").should route_to('projects/branches#index', project_id: 'gitlabhq') | |
| 141 | + end | |
| 142 | +end | |
| 143 | + | |
| 144 | +describe Projects::TagsController, "routing" do | |
| 145 | + it "to #tags" do | |
| 146 | + get("/gitlabhq/tags").should route_to('projects/tags#index', project_id: 'gitlabhq') | |
| 147 | + end | |
| 148 | +end | |
| 149 | + | |
| 150 | + | |
| 146 | 151 | # project_deploy_keys GET /:project_id/deploy_keys(.:format) deploy_keys#index |
| 147 | 152 | # POST /:project_id/deploy_keys(.:format) deploy_keys#create |
| 148 | 153 | # new_project_deploy_key GET /:project_id/deploy_keys/new(.:format) deploy_keys#new | ... | ... |