Skip to content

Instantly share code, notes, and snippets.

@sethkrasnianski
Created February 27, 2015 20:46
Show Gist options
  • Save sethkrasnianski/5dac54a16118cfa4f54e to your computer and use it in GitHub Desktop.
Save sethkrasnianski/5dac54a16118cfa4f54e to your computer and use it in GitHub Desktop.
(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