Merge pull request #1147 from strongloop/fixup_1109

Fix up #1109
This commit is contained in:
Amirali Jafarian 2016-10-24 22:41:29 -04:00 committed by GitHub
commit 5091f71416
1 changed files with 3 additions and 4 deletions

View File

@ -573,9 +573,9 @@ describe('validations', function() {
it('fails when given undefined values', function() {
User.validatesNumericalityOf('age');
var u = new User({});
u.isValid().should.be.false();
u.errors.should.eql({age: ['is blank']});
var user = new User({});
user.isValid().should.be.false();
user.errors.should.eql({age: ['is blank']});
});
it('skips undefined values when allowBlank option is true', function() {
@ -589,7 +589,6 @@ describe('validations', function() {
var user = new User({age: 'test'});
user.isValid().should.be.false();
user.errors.should.eql({age: ['is not a number']});
});
it('fails when given null values', function() {