 
     .catch (errors) ->
       t.ok errors?.length is 1, 'Should have gotten one error'
-      t.ok errors[0].message.login[0].indexOf('blank' isnt -1), 'Login error should mention "blank"'
-      t.ok errors[0].message.email[0].indexOf('blank' isnt -1), 'Email error should mention "blank"'
-      t.ok errors[0].message.password[0].indexOf('blank' isnt -1), 'Password error should mention "blank"'
+      t.ok errors[0].message.login[0].indexOf('blank') isnt -1, 'Login error should mention "blank"'
+      t.ok errors[0].message.email[0].indexOf('blank') isnt -1, 'Email error should mention "blank"'
+      t.ok errors[0].message.password[0].indexOf('blank') isnt -1, 'Password error should mention "blank"'
 
 test 'Registering an account with a short password fails', (t) ->
   SHORT_PASSWORD_REGISTRATION =


    .catch (errors) ->
      t.ok errors?.length is 1, 'Should have gotten one error'
      t.ok errors[0].message.login[0].indexOf('taken' isnt -1), 'Login error should mention "taken"'
      t.ok errors[0].message.email[0].indexOf('taken' isnt -1), 'Email error should mention "taken"'

test 'Signing in with an unknown login fails', (t) ->
  BAD_LOGIN =


    .catch (errors) ->
      t.ok errors?.length is 1, 'Should have gotten one error'
      t.ok errors[0].message.password.indexOf('incorrect') isnt -1, 'Password error should mention "incorrect"'

test 'Signing in with good details works', (t) ->
  GOOD_LOGIN_DETAILS =
