Created
February 27, 2015 20:46
-
-
Save sethkrasnianski/5dac54a16118cfa4f54e 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
(deftest deleting-a-vendor | |
(let [admin-cs (sign-in 1) | |
research-cs (sign-in 0)] | |
(seed {:model "Vendor"}) | |
(testing "deleting an existing vendor" | |
(are [code store] (= code (:status (delete "/api/vendors/1" {:cookie-store store}))) | |
200 admin-cs | |
403 research-cs | |
404 admin-cs | |
403 research-cs)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment