                           :title "A title"
                           :tags ["tag1"]
                           :doctype "note"
-                          :created-at (str tx-inst)
-                          :updated-at (str tx-inst)
+                          :created-at (c/to-string tx-inst)
+                          :updated-at (c/to-string tx-inst)
                           :html "<p>test</p>"}}
              (-> (parse response)))))))
 

                           :id (str id)
                           :title "A title"
                           :tags ["tag1"]
                           :created-at (str tx-inst)
                           :doctype "note"
                           :html "<p>note1</p>"}]}
             (parse response)))))

(ns datemo.routes-test
  (:require [cheshire.core :as json :refer [parse-string]]
            [clj-time.core :as t]
            [clj-time.coerce :as c]
            [datomic.api :as d])
  (:use clojure.test
        ring.mock.request
