           options = collection.fetch.calls.mostRecent().args[0]
           expect(options.perPage).toEqual 20
           expect(options.page).toEqual 5
-    
+
   describe '#getPreviousPage', ->
     beforeEach ->
       collection = new Tasks()

        it 'throws an error', ->
          expect(-> collection._canPaginate(true)).toThrow()
          expect(Utils.throwError.calls.mostRecent().args[0]).toMatch(/collection must have been fetched once/)
      
    context 'lastFetchOptions is defined', ->
      beforeEach ->
        collection.lastFetchOptions = {}

          options.reset = true
          collection.fetch(options)
          spyOn(collection, 'reset')

        it 'it resets the collection with the server response', ->
          expectation.respond()

