Commit c1551c6ed077a00731e692edc1a7ddb0b1f29ad1
1 parent
f79a3004
Exists in
spb-stable
and in
2 other branches
Fix routing tests.
Showing
1 changed file
with
8 additions
and
8 deletions
Show diff stats
spec/routing/routing_spec.rb
| @@ -79,35 +79,35 @@ describe HelpController, "routing" do | @@ -79,35 +79,35 @@ describe HelpController, "routing" do | ||
| 79 | end | 79 | end |
| 80 | 80 | ||
| 81 | it "to #permissions" do | 81 | it "to #permissions" do |
| 82 | - get("/help/permissions").should route_to('help#permissions') | 82 | + get("/help/permissions/permissions").should route_to('help#show', category: "permissions", file: "permissions") |
| 83 | end | 83 | end |
| 84 | 84 | ||
| 85 | it "to #workflow" do | 85 | it "to #workflow" do |
| 86 | - get("/help/workflow").should route_to('help#workflow') | 86 | + get("/help/workflow/README").should route_to('help#show', category: "workflow", file: "README") |
| 87 | end | 87 | end |
| 88 | 88 | ||
| 89 | it "to #api" do | 89 | it "to #api" do |
| 90 | - get("/help/api").should route_to('help#api') | 90 | + get("/help/api/README").should route_to('help#show', category: "api", file: "README") |
| 91 | end | 91 | end |
| 92 | 92 | ||
| 93 | it "to #web_hooks" do | 93 | it "to #web_hooks" do |
| 94 | - get("/help/web_hooks").should route_to('help#web_hooks') | 94 | + get("/help/web_hooks/web_hooks").should route_to('help#show', category: "web_hooks", file: "web_hooks") |
| 95 | end | 95 | end |
| 96 | 96 | ||
| 97 | it "to #system_hooks" do | 97 | it "to #system_hooks" do |
| 98 | - get("/help/system_hooks").should route_to('help#system_hooks') | 98 | + get("/help/system_hooks/system_hooks").should route_to('help#show', category: "system_hooks", file: "system_hooks") |
| 99 | end | 99 | end |
| 100 | 100 | ||
| 101 | it "to #markdown" do | 101 | it "to #markdown" do |
| 102 | - get("/help/markdown").should route_to('help#markdown') | 102 | + get("/help/markdown/markdown").should route_to('help#show',category: "markdown", file: "markdown") |
| 103 | end | 103 | end |
| 104 | 104 | ||
| 105 | it "to #ssh" do | 105 | it "to #ssh" do |
| 106 | - get("/help/ssh").should route_to('help#ssh') | 106 | + get("/help/ssh/README").should route_to('help#show', category: "ssh", file: "README") |
| 107 | end | 107 | end |
| 108 | 108 | ||
| 109 | it "to #raketasks" do | 109 | it "to #raketasks" do |
| 110 | - get("/help/raketasks").should route_to('help#raketasks') | 110 | + get("/help/raketasks/README").should route_to('help#show', category: "raketasks", file: "README") |
| 111 | end | 111 | end |
| 112 | end | 112 | end |
| 113 | 113 |