Skip to content

Commit

Permalink
tests; force a different collection
Browse files Browse the repository at this point in the history
  • Loading branch information
aheckmann committed Mar 27, 2013
1 parent ab0eccd commit 7b42439
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/model.populate.test.js
Expand Up @@ -2147,12 +2147,12 @@ describe('model: populate:', function(){

C = db.model('Comment', Schema({
body: 'string'
}));
}), 'comments_' + random());

U = db.model('User', Schema({
name: 'string'
, comments: [{ type: Schema.ObjectId, ref: 'Comment' }]
}));
}), 'users_' + random());

C.create({ body: 'comment 1', }, { body: 'comment 2' }, function (err, c1_, c2_) {
assert.ifError(err);
Expand Down

0 comments on commit 7b42439

Please sign in to comment.