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