testing

Testing tools, testing philosophy & methodology...
nberger 2017-03-19T00:03:38.148794Z

@facundo cool. Yes, you are going to need a macro. You could take a look into juxt/iota which implements something along those lines: https://github.com/juxt/iota/blob/master/src/juxt/iota.cljc#L54

2017-03-19T01:33:02.427612Z

cool, I’ll check it out

seancorfield 2017-03-19T05:04:33.990512Z

Or you could just use Expectations and say something like

(defexpect application-crud
  (expect (more-of {:keys [status body]
                   201 status
                   {:name “my-app”})
         (POST “/api/v1/management/applications” {:name “my-app”})))
No need to write anything else yourself.