Fork me on GitHub
#testing
<
2017-03-19
>
nberger00:03:38

@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

facundo01:03:02

cool, I’ll check it out

seancorfield05:03:33

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.