We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06438ae commit ae6332dCopy full SHA for ae6332d
spec/amber_router/route_set/matching/routes_with_variables_spec.cr
@@ -1,6 +1,15 @@
1
require "../../../spec_helper"
2
3
describe "routes with variables" do
4
+ it "routes correctly with variables" do
5
+ router = build do
6
+ add "/get/users/:id", :user_path
7
+ end
8
+
9
+ result = router.find "/get/users/3"
10
+ result.payload?.should eq :user_path
11
12
13
it "routes many variables" do
14
router = build do
15
add "/get/var/:b/:c/:d/:e/:f/:g/:h/:i/:j/:k/:l/:m/:n/:o/:p/:q/:r/:s/:t/:u/:v/:w/:x/:y/:z", :variable_alphabet
0 commit comments