summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorCarlo Zancanaro <carlo@clearboxsystems.com.au>2013-09-02 00:45:48 +1000
committerCarlo Zancanaro <carlo@clearboxsystems.com.au>2013-09-02 00:45:48 +1000
commitef4627e39f9746fe27238c862294df94ab4e164b (patch)
treecca44cabee94511955dfb56dc7240ca9d9f9b750 /test
parentef7f6a48b92680aeeea9ddbf1f4210e1d87d52e7 (diff)
Fix an issue relating to vars in the context macro
Diffstat (limited to 'test')
-rw-r--r--test/reverse_routing/core_test.clj6
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))