           )
           expect(hasClass).to.be true
 
-        collection.each (model, index) ->
+        collection.forEach (model, index) ->
           call = filterCallbackSpy.getCall index
           checkCall model, call
 

    viewsMatchCollection = ->
      children = getViewChildren()
      expect(children.length).to.be collection.length
      collection.each (model, index) ->
        $el = children.eq index

        expectedId = String model.id

          model.get('title') is 'new'

        children = getViewChildren()
        collection.forEach (model, index) ->
          $el = children.eq(index)
          visible = model.get('title') is 'new'
          displayValue = $el.css 'display'
