#350: Creating a batch via hasMany relation is failing. Added context 'with scope' to allow individual execution of tests.

This commit is contained in:
Alex Voitau 2014-11-07 15:21:15 -08:00
parent eca27ce0c6
commit f1638e9e4c
1 changed files with 164 additions and 156 deletions

View File

@ -61,6 +61,13 @@ describe('relations', function () {
db.autoupdate(done);
});
describe('with scope', function() {
before(function (done) {
Book.hasMany(Chapter);
done();
});
it('should build record on scope', function (done) {
Book.create(function (err, book) {
var c = book.chapters.build();
@ -244,6 +251,7 @@ describe('relations', function () {
done();
});
});
});
});