fixup! Test validation should inherit to submodels

This commit is contained in:
David Cheung 2016-04-26 17:05:09 -04:00
parent 7ae3047398
commit ab423dc9ce
1 changed files with 1 additions and 0 deletions

View File

@ -36,6 +36,7 @@ describe('Model / PersistedModel', function() {
var joe = new User({ email: 'joe@joe.com' });
var joe2 = new User({ email: 'joe@joe.com' });
joe.save(function() {
joe2.save(function(err) {
assert(err, 'should get a validation error');