         story._associatedCollections[field] = collection
         spyOn(base.data, 'createNewCollection')
         returnedCollection = story._linkCollection(collectionName, [], collectionOptions, field)
-        
+
       it 'returns an associated collection' ,->
         expect(collection).toBe(returnedCollection)
-        
-      it 'should not create a new collection', ->  
+
+      it 'should not create a new collection', ->
         expect(base.data.createNewCollection).not.toHaveBeenCalled()
-        

    it 'on success, triggers sync', ->
      deferred = new $.Deferred

      spyOn(base.data, 'loadObject').andReturn(deferred)
      spyOn(model, 'trigger')

      model.fetch()
      deferred.resolve()

      expect(model.trigger).toHaveBeenCalledWith('sync', model, {only: [model.id], name: 'tasks', parse: true, error: jasmine.any(Function), cache: false})

    it 'returns a promise', ->
      promise = (new $.Deferred).promise()


  describe '#_linkCollection', ->
    story = null

    beforeEach ->
      story = new App.Models.Task()

    context 'when there is not an associated collection', ->
      dummyCollection = collectionName = collectionOptions = field = null
      beforeEach ->
