diff --git a/test/manipulation.test.js b/test/manipulation.test.js index 45b6929d..b5865fe4 100644 --- a/test/manipulation.test.js +++ b/test/manipulation.test.js @@ -206,11 +206,13 @@ describe('manipulation', function () { Person.findById(created.id, function(err, found) { if (err) return done(err); - found.toObject().should.have.properties({ + var result = found.toObject(); + result.should.have.properties({ id: created.id, - name: 'a-name', - gender: undefined + name: 'a-name' }); + // The gender can be null from a RDB + should.equal(result.gender, null); done(); }); });