HenrikJoreteg/human-view — pull request #22 by lukekarrys (2014-03-28 07:19:41+00:00)
Title: pass collection to addView so it gets set on the view when doing renderCollection

Previously inside `renderCollection` the `reRender` function was passing the model index as the collection argument. This caused `this.collection` inside any views from renderCollection to be set to a number instead of the collection.

Added some tests to make sure `model` and `collection` are always properly set on any views created from renderCollection.