This commit is contained in:
Daniel Saewitz
2013-02-25 14:32:46 -05:00
parent 7ce7677816
commit e4f4227072
2 changed files with 4 additions and 4 deletions
+2 -1
View File
@@ -186,6 +186,7 @@ describe 'API', ->
model.refList "_#{type}List", "_user.tasks", "_user.#{type}Ids"
tasks = tasks.concat model.get("_#{type}List")
# Ensure that user owns the tasks
console.log _.difference(_.pluck(res.body,'id'), _.pluck(tasks,'id'))
expect(res.body.length).to.equal tasks.length
# Ensure that the two sets are equal
expect(_.difference(_.pluck(res.body,'id'), _.pluck(tasks,'id')).length).to.equal 0
done()