clintjhill/ember-parse-adapter — pull request #49 by mixonic (2014-09-14 13:42:24+00:00)
Title: Add tests for addition and removal from a hasMany relationship

Refactor `serializeHasMany` to be simpler and more correct. Enable a test for adding to a hasMany, add a test for removal from a hasMany.

I'm not convinced the conditionals in the `serializeHasMany` function are correct. The items iterated for the add operation seem to just be all items in the relationship. The property iterated for the deletion operation I believe is never set (hence the failing test). I think we need some other method to see changes to the relationship instead of just checking its current state during serialization.

/cc @igorT