Fixed server tests.

This commit is contained in:
Scott Erickson 2014-04-15 09:01:51 -07:00
parent 239b130d9c
commit 06a61d214e
2 changed files with 1 additions and 10 deletions

View file

@ -62,7 +62,7 @@ UserSchema.statics.updateMailChimp = (doc, callback) ->
doc.updatedMailChimp = true
callback?()
mc.lists.subscribe params, onSuccess, onFailure
mc?.lists.subscribe params, onSuccess, onFailure
UserSchema.pre('save', (next) ->

View file

@ -27,15 +27,6 @@ describe '/file', ->
dropGridFS ->
done()
it 'can\'t be created by ordinary users.', (done) ->
func = (err, res, body) ->
expect(res.statusCode).toBe(403)
expect(body.metadata).toBeUndefined()
done()
loginJoe ->
request.post(options, func)
it 'can\'t be created if invalid (property path is required)', (done) ->
func = (err, res, body) ->
expect(res.statusCode).toBe(422)