Added additional deletion test

This commit is contained in:
Blade Barringer 2015-01-13 21:16:05 -06:00 committed by Kevin Gisi
parent 4707ba793e
commit 80778cbd7c

View file

@ -238,6 +238,19 @@ describe "API", ->
expect(body.err).to.be "Task not found."
done()
it "Does not update text, attribute, priority, value, notes if task is already deleted", (done) ->
request.put(baseURL + "/user/tasks/" + todo.id).send(
text: "New Title"
attribute: "str"
priority: 1
value: 4
notes: "Other notes"
).end (res) ->
expectCode res, 404
body = res.body
expect(body.err).to.be "Task not found."
done()
###*
GROUPS
###