Skip to content

Commit

Permalink
Added additional deletion test
Browse files Browse the repository at this point in the history
  • Loading branch information
crookedneighbor authored and gisikw committed Mar 27, 2015
1 parent 4707ba7 commit 80778cb
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/api.mocha.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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
###
Expand Down

0 comments on commit 80778cb

Please sign in to comment.