RUBY-405 fixed map reduce test to work with 1.8.7 using ordered hash
This commit is contained in:
parent
fb77743f60
commit
99d9dfddfb
|
@ -608,7 +608,10 @@ class TestCollection < Test::Unit::TestCase
|
|||
|
||||
m = Code.new("function() { emit(this.user_id, 1); }")
|
||||
r = Code.new("function(k,vals) { return 1; }")
|
||||
res = @@test.map_reduce(m, r, :out => {:replace => "foo", :db => 'somedb'})
|
||||
oh = BSON::OrderedHash.new
|
||||
oh[:replace] = 'foo'
|
||||
oh[:db] = 'somedb'
|
||||
res = @@test.map_reduce(m, r, :out => (oh))
|
||||
assert res["result"]
|
||||
assert res["counts"]
|
||||
assert res["timeMillis"]
|
||||
|
|
Loading…
Reference in New Issue