Skip to content
This repository has been archived by the owner on Jun 23, 2020. It is now read-only.

Commit

Permalink
fixed test, aggregation ordering is not supported by mongo
Browse files Browse the repository at this point in the history
  • Loading branch information
jannehietamaki committed Oct 22, 2011
1 parent d2274d0 commit 00f35db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mungbean-clojure/src/test/clojure/mungbean_test.clj
Expand Up @@ -67,7 +67,7 @@
(deftest generate-items-and-get-distinct (deftest generate-items-and-get-distinct
(with-mungo "foo" (with-mungo "foo"
(insert-test-data 10 "foo" "bar" "zoo") (insert-test-data 10 "foo" "bar" "zoo")
(is (= ["bar" "foo" "zoo"] (mongo/query coll :operation (aggregation/get-distinct :foo) :order {:foo :asc} ))) (is (= ["bar" "foo" "zoo"] (sort (mongo/query coll :operation (aggregation/get-distinct :foo)))))
) )
) )


Expand Down

0 comments on commit 00f35db

Please sign in to comment.