summaryrefslogtreecommitdiff
path: root/spec/routing/routing_spec.rb
diff options
context:
space:
mode:
authorMarin Jankovski <marin@gitlab.com>2014-05-29 08:36:32 +0200
committerMarin Jankovski <marin@gitlab.com>2014-05-29 08:58:15 +0200
commitc1551c6ed077a00731e692edc1a7ddb0b1f29ad1 (patch)
tree260afd8ead2fb5f97df4249bd4a0703e2c8cf602 /spec/routing/routing_spec.rb
parentf79a300417120bb2bdd5d5b22c8ced42e5c3dab7 (diff)
downloadgitlab-ce-c1551c6ed077a00731e692edc1a7ddb0b1f29ad1.tar.gz
Fix routing tests.
Diffstat (limited to 'spec/routing/routing_spec.rb')
-rw-r--r--spec/routing/routing_spec.rb16
1 files changed, 8 insertions, 8 deletions
diff --git a/spec/routing/routing_spec.rb b/spec/routing/routing_spec.rb
index a2d2a35140c..7bfd5d0b998 100644
--- a/spec/routing/routing_spec.rb
+++ b/spec/routing/routing_spec.rb
@@ -79,35 +79,35 @@ describe HelpController, "routing" do
end
it "to #permissions" do
- get("/help/permissions").should route_to('help#permissions')
+ get("/help/permissions/permissions").should route_to('help#show', category: "permissions", file: "permissions")
end
it "to #workflow" do
- get("/help/workflow").should route_to('help#workflow')
+ get("/help/workflow/README").should route_to('help#show', category: "workflow", file: "README")
end
it "to #api" do
- get("/help/api").should route_to('help#api')
+ get("/help/api/README").should route_to('help#show', category: "api", file: "README")
end
it "to #web_hooks" do
- get("/help/web_hooks").should route_to('help#web_hooks')
+ get("/help/web_hooks/web_hooks").should route_to('help#show', category: "web_hooks", file: "web_hooks")
end
it "to #system_hooks" do
- get("/help/system_hooks").should route_to('help#system_hooks')
+ get("/help/system_hooks/system_hooks").should route_to('help#show', category: "system_hooks", file: "system_hooks")
end
it "to #markdown" do
- get("/help/markdown").should route_to('help#markdown')
+ get("/help/markdown/markdown").should route_to('help#show',category: "markdown", file: "markdown")
end
it "to #ssh" do
- get("/help/ssh").should route_to('help#ssh')
+ get("/help/ssh/README").should route_to('help#show', category: "ssh", file: "README")
end
it "to #raketasks" do
- get("/help/raketasks").should route_to('help#raketasks')
+ get("/help/raketasks/README").should route_to('help#show', category: "raketasks", file: "README")
end
end