Skip to content

Commit 349cc94

Browse files
committed
Build: Fix DBRef should stringify test
1 parent 3b4b5af commit 349cc94

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

driver-core/src/test/unit/com/mongodb/DBRefSpecification.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ class DBRefSpecification extends Specification {
9292

9393
def 'should stringify'() {
9494
expect:
95-
new DBRef('foo.bar', 4).toString() == '{ "$ref" : "foo.bar", "$id" : "4 }'
96-
new DBRef('mydb', 'foo.bar', 4).toString() == '{ "$ref" : "foo.bar", "$id" : "4, "$db" : "mydb" }'
95+
new DBRef('foo.bar', 4).toString() == '{ "$ref" : "foo.bar", "$id" : "4" }'
96+
new DBRef('mydb', 'foo.bar', 4).toString() == '{ "$ref" : "foo.bar", "$id" : "4", "$db" : "mydb" }'
9797
}
9898

9999
def 'testSerialization'() throws Exception {

0 commit comments

Comments
 (0)