Re: Ring mock with GET parameters

2014-07-12 Thread Jonathon McKitrick
Sorry, I just got it... I needed to use 'app' in the test, not 'api-routes.' On Saturday, July 12, 2014 7:42:53 PM UTC-4, Jonathon McKitrick wrote: > > Hmm, except I don't have any issues when accessing it via an http client. > Only with the mock. > > On Saturday, July 12, 2014 6:24:28 PM UTC-4,

Re: Ring mock with GET parameters

2014-07-12 Thread Jonathon McKitrick
Here's my handler setup: (def app (routes (-> (handler/api api-routes) (wrap-params) (wrap-restful-format) (wrap-reload)) (-> (handler/site www-routes) (wrap-resource "public") (wrap-content-type) (wrap-reload On Saturday, July 12, 2014 7:42

Re: Ring mock with GET parameters

2014-07-12 Thread Jonathon McKitrick
Hmm, except I don't have any issues when accessing it via an http client. Only with the mock. On Saturday, July 12, 2014 6:24:28 PM UTC-4, James Reeves wrote: > > You need to make sure your handler has the wrap-params middleware applied > to it in order for it to accept query parameters. > > -

Re: Ring mock with GET parameters

2014-07-12 Thread James Reeves
You need to make sure your handler has the wrap-params middleware applied to it in order for it to accept query parameters. - James On 12 July 2014 20:41, Jonathon McKitrick wrote: > I'm using ring.mock.request to test an API. POST parameters work fine, > but for GET requests, the parameters