diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/reverse_routing/core_test.clj | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/reverse_routing/core_test.clj b/test/reverse_routing/core_test.clj index 5dc50ba..8752de9 100644 --- a/test/reverse_routing/core_test.clj +++ b/test/reverse_routing/core_test.clj @@ -56,11 +56,11 @@ (context "/user" [] (register-route :user (GET "/" [id] (str "user list"))) - (context "/:id" [] + (context "/:id" [id] (register-route :user - (GET "/" [id] (str "user " id))) + (GET "/" [] (str "user " id))) (register-route :edit-user - (GET "/edit" [id] (str "edit user " id))))) + (GET "/edit" [] (str "edit user " id))))) (GET "/succeed1" [] (url-for :user)) (GET "/succeed2" [] (url-for :user 10)) (GET "/succeed3" [] (url-for :edit-user 10)) |