Fix the embedsOne test cases

This commit is contained in:
Raymond Feng 2014-08-20 11:42:14 -07:00
parent beaf6e5345
commit a1c1a9c658
1 changed files with 2 additions and 1 deletions

View File

@ -1337,10 +1337,11 @@ describe('relations', function () {
Other = db.define('Other', {name: String});
});
it('can be declared using embedsOne method', function () {
it('can be declared using embedsOne method', function (done) {
Person.embedsOne(Passport, {
default: {name: 'Anonymous'} // a bit contrived
});
db.automigrate(done);
});
it('should have setup a property and accessor', function() {