update a test to check for undefined value when making new habit

This commit is contained in:
Rob Scanlon 2013-04-04 18:09:06 -04:00
parent 3139e51535
commit 4958690bcb

View file

@ -159,6 +159,8 @@ describe 'API', ->
expect(res.body.id).not.to.be.empty()
# Ensure that user owns the newly created object
expect(user.get().tasks[res.body.id]).to.be.an('object')
# Ensure that value gets set to 0 since not otherwise specified
expect(user.get().tasks[res.body.id].value).to.be.equal(0)
done()
it 'PUT /api/v1/user/task/:id', (done) ->