 
   (context "with a non-existent circle"
     (around [it]
-      (with-redefs [p/get-all-governance-logs circle-not-found-thrower
-                    p/new-governance-log circle-not-found-thrower
-                    p/get-governance-log circle-not-found-thrower
-                    p/put-governance-log circle-not-found-thrower]
+      (with-redefs [p/get-all-governance-logs throw-circle-not-found
+                    p/new-governance-log throw-circle-not-found
+                    p/get-governance-log throw-circle-not-found
+                    p/put-governance-log throw-circle-not-found]
         (it)))
 
     (context "requesting the governance endpoint"

            [clj-http.client :as http-client]
            [freefrog.rest :as r]
            [freefrog.persistence :as p])
  (:use [ring.adapter.jetty])
  (:import [javax.persistence EntityNotFoundException]
           [org.apache.http HttpStatus]))

(def test-server (ref nil))



(def sample-gov-log {:body "Add role\nRename accountability."})

(defn throw-circle-not-found [& args]
  (throw (EntityNotFoundException. "Circle does not exist")))

(defn throw-meeting-not-found [& args]
  (throw (EntityNotFoundException. "Governance meeting does not exist")))

(defmacro it-responds-with-status [expected-status response]
