diff options
author | Carlo Zancanaro <carlo@clearboxsystems.com.au> | 2013-09-02 00:45:48 +1000 |
---|---|---|
committer | Carlo Zancanaro <carlo@clearboxsystems.com.au> | 2013-09-02 00:45:48 +1000 |
commit | ef4627e39f9746fe27238c862294df94ab4e164b (patch) | |
tree | cca44cabee94511955dfb56dc7240ca9d9f9b750 /test/reverse_routing | |
parent | ef7f6a48b92680aeeea9ddbf1f4210e1d87d52e7 (diff) |
Fix an issue relating to vars in the context macro
Diffstat (limited to 'test/reverse_routing')
-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)) |