From 212e9b1f8577486322ca30e2016bfb38b3e3e499 Mon Sep 17 00:00:00 2001 From: Amir Jafarian Date: Thu, 20 Oct 2016 16:36:37 -0400 Subject: [PATCH] Make variable names more clear * Fix up #1109 --- test/validations.test.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/test/validations.test.js b/test/validations.test.js index fd79f613..38776fcc 100644 --- a/test/validations.test.js +++ b/test/validations.test.js @@ -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() {