Routing specs for fork projects
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
parent
e08e405ac4
commit
d2c3c98e3c
1 changed files with 10 additions and 5 deletions
|
@ -55,7 +55,6 @@ end
|
||||||
|
|
||||||
# projects POST /projects(.:format) projects#create
|
# projects POST /projects(.:format) projects#create
|
||||||
# new_project GET /projects/new(.:format) projects#new
|
# new_project GET /projects/new(.:format) projects#new
|
||||||
# fork_project POST /:id/fork(.:format) projects#fork
|
|
||||||
# files_project GET /:id/files(.:format) projects#files
|
# files_project GET /:id/files(.:format) projects#files
|
||||||
# edit_project GET /:id/edit(.:format) projects#edit
|
# edit_project GET /:id/edit(.:format) projects#edit
|
||||||
# project GET /:id(.:format) projects#show
|
# project GET /:id(.:format) projects#show
|
||||||
|
@ -70,10 +69,6 @@ describe ProjectsController, "routing" do
|
||||||
get("/projects/new").should route_to('projects#new')
|
get("/projects/new").should route_to('projects#new')
|
||||||
end
|
end
|
||||||
|
|
||||||
it "to #fork" do
|
|
||||||
post("/gitlab/gitlabhq/fork").should route_to('projects#fork', id: 'gitlab/gitlabhq')
|
|
||||||
end
|
|
||||||
|
|
||||||
it "to #edit" do
|
it "to #edit" do
|
||||||
get("/gitlab/gitlabhq/edit").should route_to('projects#edit', id: 'gitlab/gitlabhq')
|
get("/gitlab/gitlabhq/edit").should route_to('projects#edit', id: 'gitlab/gitlabhq')
|
||||||
end
|
end
|
||||||
|
@ -462,3 +457,13 @@ describe Projects::GraphsController, "routing" do
|
||||||
get("/gitlab/gitlabhq/graphs/master").should route_to('projects/graphs#show', project_id: 'gitlab/gitlabhq', id: 'master')
|
get("/gitlab/gitlabhq/graphs/master").should route_to('projects/graphs#show', project_id: 'gitlab/gitlabhq', id: 'master')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
describe Projects::ForksController, "routing" do
|
||||||
|
it "to #new" do
|
||||||
|
get("/gitlab/gitlabhq/fork/new").should route_to("projects/forks#new", project_id: 'gitlab/gitlabhq')
|
||||||
|
end
|
||||||
|
|
||||||
|
it "to #create" do
|
||||||
|
post("/gitlab/gitlabhq/fork").should route_to("projects/forks#create", project_id: 'gitlab/gitlabhq')
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
Loading…
Reference in a new issue