Skip to content

Commit 9abdc0a

Browse files
committed
Revert change to features/routing_specs/README.md - the documentation for #route_to is sufficient
1 parent 7579c6e commit 9abdc0a

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

Diff for: features/routing_specs/README.md

+1-14
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,4 @@ customized routes, like vanity links, slugs, etc.
1414

1515
They are also valuable for routes that should not be available:
1616

17-
{ :delete => "/accounts/37" }.should_not be_routable
18-
19-
## Specifying matched routes
20-
21-
When using the `#route_to` matcher, you can specify the expected route using a
22-
hash or a string, and it will be parsed:
23-
24-
route_to("controller#action")
25-
route_to("namespaced/controller#action")
26-
route_to(:controller => "controller",
27-
:action => "action",
28-
:params => "params")
29-
route_to(:controller => "namespaced/controller",
30-
:action => "action")
17+
{ :delete => "/accounts/37" }.should_not be_routable

0 commit comments

Comments
 (0)