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:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-01-09 11:47:25 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-01-09 11:47:25 +0400
commit31e3dc600a73f41c02ecc4f9ffa7007957204168 (patch)
tree8ef0c0d72a0805f536d2d3db7a3a8ff875bfc78a /spec
parent80e79f33aff57ba56838992591a13e086fad76b2 (diff)
Fix routing specs
Diffstat (limited to 'spec')
-rw-r--r--spec/routing/project_routing_spec.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/routing/project_routing_spec.rb b/spec/routing/project_routing_spec.rb
index 09e11588164..6171141648c 100644
--- a/spec/routing/project_routing_spec.rb
+++ b/spec/routing/project_routing_spec.rb
@@ -191,17 +191,17 @@ describe ProtectedBranchesController, "routing" do
end
end
-# switch_project_refs GET /:project_id/switch(.:format) refs#switch
-# 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
+# switch_project_refs GET /:project_id/refs/switch(.:format) refs#switch
+# logs_tree_project_ref GET /:project_id/refs/:id/logs_tree(.:format) refs#logs_tree
+# logs_file_project_ref GET /:project_id/refs/:id/logs_tree/:path(.:format) refs#logs_tree
describe RefsController, "routing" do
it "to #switch" do
- get("/gitlabhq/switch").should route_to('refs#switch', project_id: 'gitlabhq')
+ get("/gitlabhq/refs/switch").should route_to('refs#switch', project_id: 'gitlabhq')
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')
+ get("/gitlabhq/refs/stable/logs_tree").should route_to('refs#logs_tree', project_id: 'gitlabhq', id: 'stable')
+ get("/gitlabhq/refs/stable/logs_tree/foo/bar/baz").should route_to('refs#logs_tree', project_id: 'gitlabhq', id: 'stable', path: 'foo/bar/baz')
end
end