 
         it "accepts a success function that gets triggered on cache hit", ->
           respondWith server, "/api/time_entries?include=project%3Btask&only=2%2C3",
-                      data: { results: [["time_entries", 2], ["time_entries", 3]], time_entries: [buildTimeEntry(project_id: 10, id: 2, task_id: null), buildTimeEntry(project_id: 11, id: 3, task_id: null)], tasks: [], projects: [buildProject(id: 10), buildProject(id: 11)] }
+                      resultsFrom: "time_entries", data: { time_entries: [buildTimeEntry(project_id: 10, id: 2, task_id: null), buildTimeEntry(project_id: 11, id: 3, task_id: null)], tasks: [], projects: [buildProject(id: 10), buildProject(id: 11)] }
           base.data.loadCollection "time_entries", include: ["project", "task"], only: [2, 3]
           server.respond()
           spy = jasmine.createSpy().andCallFake (collection) ->


        it "does request ids from the server again when they don't have all associations loaded yet", ->
          respondWith server, "/api/time_entries?include=project&only=2",
                      data: { results: [["time_entries", 2]], time_entries: [buildTimeEntry(project_id: 10, id: 2, task_id: 5)], projects: [buildProject(id: 10)] }
          respondWith server, "/api/time_entries?include=project%3Btask&only=2",
                      data: { results: [["time_entries", 2]], time_entries: [buildTimeEntry(project_id: 10, id: 2, task_id: 5)], tasks: [buildTask(id: 5)], projects: [buildProject(id: 10)] }
          respondWith server, "/api/time_entries?include=project%3Btask&only=3",
                      data: { results: [["time_entries", 3]], time_entries: [buildTimeEntry(project_id: 11, id: 3, task_id: null)], tasks: [], projects: [buildProject(id: 11)] }

          base.data.loadCollection "time_entries", include: ["project"], only: 2
          server.respond()


      beforeEach ->
        item = buildTask()
        respondWith server, "/api/tasks.json?per_page=20&page=1", resultsFrom: "tasks", data: { tasks: [item] }

      it "goes to server even if we have matching items in cache", ->
        syncSpy = spyOn(Backbone, 'sync')
