mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 10:06:08 -05:00
Merge branch 'master' of https://github.com/codecombat/codecombat
This commit is contained in:
commit
fcb1341295
2 changed files with 1 additions and 10 deletions
|
@ -62,7 +62,7 @@ UserSchema.statics.updateMailChimp = (doc, callback) ->
|
||||||
doc.updatedMailChimp = true
|
doc.updatedMailChimp = true
|
||||||
callback?()
|
callback?()
|
||||||
|
|
||||||
mc.lists.subscribe params, onSuccess, onFailure
|
mc?.lists.subscribe params, onSuccess, onFailure
|
||||||
|
|
||||||
|
|
||||||
UserSchema.pre('save', (next) ->
|
UserSchema.pre('save', (next) ->
|
||||||
|
|
|
@ -27,15 +27,6 @@ describe '/file', ->
|
||||||
dropGridFS ->
|
dropGridFS ->
|
||||||
done()
|
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) ->
|
it 'can\'t be created if invalid (property path is required)', (done) ->
|
||||||
func = (err, res, body) ->
|
func = (err, res, body) ->
|
||||||
expect(res.statusCode).toBe(422)
|
expect(res.statusCode).toBe(422)
|
||||||
|
|
Loading…
Reference in a new issue