minor: test fix for server versions < 1.8

This commit is contained in:
Kyle Banker 2011-03-29 17:02:48 -04:00
parent b821a3a48a
commit 1d3ffe37c7

View File

@ -466,6 +466,8 @@ class TestCollection < Test::Unit::TestCase
assert res["timeMillis"] assert res["timeMillis"]
end end
if @@version >= "1.8.0"
def test_map_reduce_with_collection_merge def test_map_reduce_with_collection_merge
@@test << {:user_id => 1} @@test << {:user_id => 1}
@@test << {:user_id => 2} @@test << {:user_id => 2}
@ -493,6 +495,7 @@ class TestCollection < Test::Unit::TestCase
assert res["results"] assert res["results"]
end end
end end
end
if @@version > "1.3.0" if @@version > "1.3.0"
def test_find_and_modify def test_find_and_modify