diff --git a/project.clj b/project.clj index 5c31476..98ab6a6 100644 --- a/project.clj +++ b/project.clj @@ -43,4 +43,4 @@ "sonatype-snapshots" {:url "http://oss.sonatype.org/content/repositories/snapshots" :snapshots true :releases {:checksum :fail :update :always}}} - :warn-on-reflection true) + :aot [monger.conversion]) diff --git a/test/monger/test/conversion_test.clj b/test/monger/test/conversion_test.clj index 8b76839..2abcb17 100644 --- a/test/monger/test/conversion_test.clj +++ b/test/monger/test/conversion_test.clj @@ -35,6 +35,16 @@ output (to-db-object input)] (is (= input output)))) +(deftest convert-boolean-true-to-dbobject + (let [input true + output (to-db-object input)] + (is (= input output)))) + +(deftest convert-boolean-false-to-dbobject + (let [input false + output (to-db-object input)] + (is (= input output)))) + (deftest convert-map-to-dbobject (let [input { :int 1, :string "Mongo", :float 22.23 }