#350: Creating a batch via hasMany relation is failing. Added context 'with scope' to allow individual execution of tests.
This commit is contained in:
parent
eca27ce0c6
commit
f1638e9e4c
|
@ -61,6 +61,13 @@ describe('relations', function () {
|
||||||
db.autoupdate(done);
|
db.autoupdate(done);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
describe('with scope', function() {
|
||||||
|
|
||||||
|
before(function (done) {
|
||||||
|
Book.hasMany(Chapter);
|
||||||
|
done();
|
||||||
|
});
|
||||||
|
|
||||||
it('should build record on scope', function (done) {
|
it('should build record on scope', function (done) {
|
||||||
Book.create(function (err, book) {
|
Book.create(function (err, book) {
|
||||||
var c = book.chapters.build();
|
var c = book.chapters.build();
|
||||||
|
@ -244,6 +251,7 @@ describe('relations', function () {
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue