 
     describe 'Templated CollectionView', ->
 
+      # Testing class for CollectionViews with template,
+      # custom list, loading indicator and fallback elements
+      class TemplatedCollectionView extends TestCollectionView
+        fallbackSelector: '> .fallback'
+        listSelector: '> ol'
+        loadingSelector: '> .loading'
+        getTemplateFunction: ->
+          ->
+            """
+            <h2>TemplatedCollectionView</h2>
+            <ol></ol>
+            <p class="loading">Loading…</p>
+            <p class="fallback">This list is empty.</p>
+            """
+
       beforeEach ->
         createCollection()
         # Mix in SyncMachine into Collection


    describe 'Animation', ->

      it 'should animate the opacity of new items', ->
        $css = sinon.stub jQuery.prototype, 'css', -> this
        $animate = sinon.stub jQuery.prototype, 'animate', -> this

        $animate.restore()

      it 'should animate with CSS classes', (done) ->

        class AnimatingCollectionView extends CollectionView
          useCssAnimation: true
          itemView: ItemView
