From 59da9db80da11b494626721aaf45712b263743ad Mon Sep 17 00:00:00 2001 From: "Michael S. Klishin" Date: Sat, 8 Oct 2011 04:42:10 +0400 Subject: [PATCH] Improve this test --- test/monger/test/collection.clj | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/monger/test/collection.clj b/test/monger/test/collection.clj index bca4fee..128e505 100644 --- a/test/monger/test/collection.clj +++ b/test/monger/test/collection.clj @@ -130,9 +130,9 @@ ;; (deftest find-full-document-when-collection-is-empty - (let [collection "docs"] - (def cursor (monger.collection/find collection)) - (is (instance? DBCursor cursor)))) + (let [collection "docs" + cursor (monger.collection/find collection)] + (is (empty? (iterator-seq cursor))))) ;;