 
 (def the-stored-user (into the-user {:_id USER_ID}))
 
-(def profile-posts
-  {:successful {:status 201
-                :headers {"Content-Type" "application/json"}
-                :body (json/generate-string the-stored-user)}
-   :failure    {:status 500}})
-
 (def BEARER_NAME "bearer")
 (def BEARER_TOKEN "token")
 

                  :username "my username"})

(def the-stored-comment (into the-comment {:_id 1}))
(def comment-response
  {:successful {:status 201
                :headers {"Content-Type" "application/json"}
                :body (json/generate-string the-stored-comment)}
   :failure    {:status 500}})

(facts "about posting comments"
       (fact "returns a stored comment when post succeeds"
             (api/create-comment the-comment) => the-stored-comment
             (provided (api/post-request (contains "/api/v1/comments")
                                         request-with-bearer-token)
                       => (:successful comment-response)))

       (fact "returns api-failure when post fails"
             (with-fake-http [(str host-url "/api/v1/comments") (:failure comment-response)]
               (api/create-comment the-comment))
             => api/api-failure))

(facts "about retrieving comments"
       (fact "returns a list of comments for an objective"

                    :username "my username"})

(def the-stored-objective (into the-objective {:_id OBJECTIVE_ID}))

(facts "about posting objectives"
       (fact "returns a stored objective when post succeeds"
             (api/create-objective the-objective) => the-stored-objective
             (provided (api/post-request (contains "/api/v1/objectives")
                                         request-with-bearer-token)
                       => {:status 201
                           :headers {"Content-Type" "application/json"}
                           :body (json/generate-string the-stored-objective)}))

       (fact "returns api-failure when post fails"
             (api/create-objective the-objective) => api/api-failure
             (provided (api/post-request anything anything) => {:status 500})))

(facts "about getting objectives"
       (fact "returns a stored objective when one exists with given id"
