 
         it "only requests ids that we don't already have", ->
           respondWith server, "/api/time_entries?include=project%3Btask&only=2",
-                      data: { results: [["time_entries", 2]], time_entries: [buildTimeEntry(task_id: null, project_id: 10, id: 2)], tasks: [], projects: [buildProject(id: 10)] }
+                      resultsFrom: "time_entries", data: { time_entries: [buildTimeEntry(task_id: null, project_id: 10, id: 2)], tasks: [], projects: [buildProject(id: 10)] }
           respondWith server, "/api/time_entries?include=project%3Btask&only=3",
-                      data: { results: [["time_entries", 3]], time_entries: [buildTimeEntry(task_id: null, project_id: 11, id: 3)], tasks: [], projects: [buildProject(id: 11)] }
+                      resultsFrom: "time_entries", data: { time_entries: [buildTimeEntry(task_id: null, project_id: 11, id: 3)], tasks: [], projects: [buildProject(id: 11)] }
 
           collection = base.data.loadCollection "time_entries", include: ["project", "task"], only: 2
           expect(collection.loaded).toBe false

          collection2 = base.data.loadCollection "time_entries", include: ["project"], only: [2, 3], success: spy
          expect(spy).toHaveBeenCalled()

        it "does not update sort lengths on only queries", ->
          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)] }
          collection = base.data.loadCollection "time_entries", include: ["project", "task"], only: [2, 3]
          expect(Object.keys base.data.getCollectionDetails("time_entries")["cache"]).toEqual []
          server.respond()


        it "does go to the server on a repeat request if an association is missing", ->
          respondWith server, "/api/time_entries?include=project&only=2",
                      resultsFrom: "time_entries", data: { time_entries: [buildTimeEntry(project_id: 10, id: 2, task_id: 6)], projects: [buildProject(id: 10)] }
          respondWith server, "/api/time_entries?include=project%3Btask&only=2",
                      resultsFrom: "time_entries", data: { time_entries: [buildTimeEntry(project_id: 10, id: 2, task_id: 6)], tasks: [buildTask(id: 6)], projects: [buildProject(id: 10)] }
          collection = base.data.loadCollection "time_entries", include: ["project"], only: 2
          expect(collection.loaded).toBe false
          server.respond()
