Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2012-09-17 20:26:29 +0400
committerRobert Speicher <rspeicher@gmail.com>2012-09-27 00:32:21 +0400
commit884eb732977ee785c48a954542e8735cd572e1fe (patch)
tree28e03829542cf55bc1d0ef78bb75d81815be8ca3 /spec
parent2ddb19170624f81ec0cb3da26805a5515878aede (diff)
Enable tree resource, remove old tree routes
Diffstat (limited to 'spec')
-rw-r--r--spec/routing/project_routing_spec.rb21
1 files changed, 7 insertions, 14 deletions
diff --git a/spec/routing/project_routing_spec.rb b/spec/routing/project_routing_spec.rb
index 9900a31f232..f9c99a209fc 100644
--- a/spec/routing/project_routing_spec.rb
+++ b/spec/routing/project_routing_spec.rb
@@ -192,10 +192,8 @@ describe ProtectedBranchesController, "routing" do
end
# switch_project_refs GET /:project_id/switch(.:format) refs#switch
-# tree_project_ref GET /:project_id/:id/tree(.:format) refs#tree
-# logs_tree_project_ref GET /:project_id/:id/logs_tree(.:format) refs#logs_tree
# blob_project_ref GET /:project_id/:id/blob(.:format) refs#blob
-# tree_file_project_ref GET /:project_id/:id/tree/:path(.:format) refs#tree
+# logs_tree_project_ref GET /:project_id/:id/logs_tree(.:format) refs#logs_tree
# logs_file_project_ref GET /:project_id/:id/logs_tree/:path(.:format) refs#logs_tree
# blame_file_project_ref GET /:project_id/:id/blame/:path(.:format) refs#blame
describe RefsController, "routing" do
@@ -203,11 +201,6 @@ describe RefsController, "routing" do
get("/gitlabhq/switch").should route_to('refs#switch', project_id: 'gitlabhq')
end
- it "to #tree" do
- get("/gitlabhq/stable/tree").should route_to('refs#tree', project_id: 'gitlabhq', id: 'stable')
- get("/gitlabhq/stable/tree/foo/bar/baz").should route_to('refs#tree', project_id: 'gitlabhq', id: 'stable', path: 'foo/bar/baz')
- end
-
it "to #logs_tree" do
get("/gitlabhq/stable/logs_tree").should route_to('refs#logs_tree', project_id: 'gitlabhq', id: 'stable')
get("/gitlabhq/stable/logs_tree/foo/bar/baz").should route_to('refs#logs_tree', project_id: 'gitlabhq', id: 'stable', path: 'foo/bar/baz')
@@ -406,6 +399,12 @@ describe NotesController, "routing" do
end
end
+describe TreeController, "routing" do
+ it "to #show" 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
+
# TODO: Pending
#
# /:project_id/blame/*path
@@ -457,10 +456,4 @@ describe "pending routing" 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