From 7c1ee7d6fc621a4d04d4a4e40be9c57204881200 Mon Sep 17 00:00:00 2001 From: AntonyAntonio Date: Thu, 21 Jul 2016 15:27:57 -0300 Subject: [PATCH] guillermo - code review changes [skip ci] --- server/models/ERRORS.php | 1 - tests/user/signup.rb | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/server/models/ERRORS.php b/server/models/ERRORS.php index c6dd0e05..442f9b54 100644 --- a/server/models/ERRORS.php +++ b/server/models/ERRORS.php @@ -8,5 +8,4 @@ class ERRORS { const INVALID_PASSWORD = 'Invalid password'; const INVALID_TITLE = 'Invalid title'; const INVALID_CONTENT = 'Invalid content'; - } diff --git a/tests/user/signup.rb b/tests/user/signup.rb index a5d48391..8344e998 100644 --- a/tests/user/signup.rb +++ b/tests/user/signup.rb @@ -61,7 +61,6 @@ describe '/user/signup' do (result['status']).should.equal('fail') (result['message']).should.equal('Invalid email') - end it 'should fail if password is invalid' do @@ -82,6 +81,9 @@ describe '/user/signup' do email: 'tyrion@outlook.com', password: long_text }) + + (result['status']).should.equal('fail') + (result['message']).should.equal('Invalid password') end end