diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-07-17 08:43:56 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-07-17 08:43:56 +0300 |
commit | d2284b4112b31ae4e2301a8433bb64b40fdad80f (patch) | |
tree | fe9b8059c68aea815d2d2172ba21203d6bc5ce40 /spec | |
parent | 9ea5766c3554843b88bfb65de48872ccd50363e7 (diff) | |
download | gitlab-ce-d2284b4112b31ae4e2301a8433bb64b40fdad80f.tar.gz |
Fix routing specs
Diffstat (limited to 'spec')
-rw-r--r-- | spec/routing/project_routing_spec.rb | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/spec/routing/project_routing_spec.rb b/spec/routing/project_routing_spec.rb index 831e464f9cb..5fb0f860c42 100644 --- a/spec/routing/project_routing_spec.rb +++ b/spec/routing/project_routing_spec.rb @@ -126,14 +126,6 @@ end # archive_project_repository GET /:project_id/repository/archive(.:format) projects/repositories#archive # edit_project_repository GET /:project_id/repository/edit(.:format) projects/repositories#edit 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 get("/gitlabhq/repository/archive").should route_to('projects/repositories#archive', project_id: 'gitlabhq') end @@ -143,6 +135,19 @@ describe Projects::RepositoriesController, "routing" do 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 # POST /:project_id/deploy_keys(.:format) deploy_keys#create # new_project_deploy_key GET /:project_id/deploy_keys/new(.:format) deploy_keys#new |