From b86cabdc1ae6a6ddde321fd1f2f6ecac88cc45a9 Mon Sep 17 00:00:00 2001 From: Michael Klishin Date: Fri, 9 May 2014 17:01:02 -0400 Subject: [PATCH] One more assertion --- test/monger/test/regular_finders_test.clj | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/monger/test/regular_finders_test.clj b/test/monger/test/regular_finders_test.clj index 52d68b3..20f3db9 100644 --- a/test/monger/test/regular_finders_test.clj +++ b/test/monger/test/regular_finders_test.clj @@ -28,6 +28,7 @@ (deftest find-one-full-document-as-map-when-collection-is-empty (let [collection "docs"] + (mgcol/remove collection) (is (nil? (mgcol/find-one-as-map collection {}))))) @@ -37,6 +38,7 @@ doc { :data-store "MongoDB", :language "Clojure", :_id doc-id } _ (mgcol/insert collection doc) found-one (mgcol/find-one collection { :language "Clojure" })] + (is found-one) (is (= (:_id doc) (monger.util/get-id found-one))) (is (= (mgcnv/from-db-object found-one true) doc)) (is (= (mgcnv/to-db-object doc) found-one))))