Skip to content

Instantly share code, notes, and snippets.

@Raynes
Created December 10, 2011 08:42
Show Gist options
  • Save Raynes/1454836 to your computer and use it in GitHub Desktop.
Save Raynes/1454836 to your computer and use it in GitHub Desktop.
(letfn [(status-map [status] {:status status :body [0]})]
(tabular
(fact
(safe-parse {:status ?status :body "[0]"}) => (contains ?expected))
?status ?expected
404 (status-map 404)
400 (status-map 400)
422 (status-map 422)
500 (status-map 500)
204 (status-map 204)
200 [0]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment