summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarlo Zancanaro <carlo@zancanaro.id.au>2014-02-15 00:30:48 +1100
committerCarlo Zancanaro <carlo@zancanaro.id.au>2014-02-15 00:30:48 +1100
commit71c60cd6e16047385adfef3272dc17d74b5bfbb9 (patch)
treeb2983d480003d708a0a69e04dd944bf1633824ce /src
parent76bf8fa0f08a37f5d2f9d3d9ccd13075188568e8 (diff)
Change `with-url-fn` to use the result immediately as the route (not a map of details)
Diffstat (limited to 'src')
-rw-r--r--src/abra/core.clj2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/abra/core.clj b/src/abra/core.clj
index e6bc3fc..19d85cd 100644
--- a/src/abra/core.clj
+++ b/src/abra/core.clj
@@ -116,7 +116,7 @@
"Test helper: run body using `f` as a url lookup in
`core.abra/url-for`."
[f & body]
- `(binding [*lookup-route* (fn [x#] (apply ~f x#))
+ `(binding [*lookup-route* (fn [x#] {:type :get, :uri (apply ~f x#)})
*root* ""]
~@body))