From a1c1a9c65819fa322cfc6ee5be8a10cdb2f5cba1 Mon Sep 17 00:00:00 2001 From: Raymond Feng Date: Wed, 20 Aug 2014 11:42:14 -0700 Subject: [PATCH] Fix the embedsOne test cases --- test/relations.test.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/relations.test.js b/test/relations.test.js index b20f3f35..55b6350f 100644 --- a/test/relations.test.js +++ b/test/relations.test.js @@ -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() {