Permalink
Browse files

fixed test, aggregation ordering is not supported by mongo

  • Loading branch information...
1 parent d2274d0 commit 00f35dbb8259489bd12018be9da07bee3960c011 @jannehietamaki committed Oct 22, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 mungbean-clojure/src/test/clojure/mungbean_test.clj
@@ -67,7 +67,7 @@
(deftest generate-items-and-get-distinct
(with-mungo "foo"
(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)))))
)
)

0 comments on commit 00f35db

Please sign in to comment.