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

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

        expectedId = String model.id

          )
          expect(hasClass).to.be true

        collection.forEach (model, index) ->
          call = filterCallbackSpy.getCall index
          checkCall model, call

