Created
December 10, 2011 08:42
-
-
Save Raynes/1454836 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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