 
         it "does go to the server on a repeat request if an association is missing", ->
           respondWith server, "/api/time_entries?include=project&only=2",
-                      data: { results: [["time_entries", 2]], time_entries: [buildTimeEntry(project_id: 10, id: 2, task_id: 6)], projects: [buildProject(id: 10)] }
+                      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",
-                      data: { results: [["time_entries", 2]], time_entries: [buildTimeEntry(project_id: 10, id: 2, task_id: 6)], tasks: [buildTask(id: 6)], projects: [buildProject(id: 10)] }
+                      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()


        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()

      describe "when getting data from the server", ->
        it "returns the requested ids with includes, triggering reset and success", ->
          respondWith server, "/api/time_entries?include=project%3Btask&only=2",
                      resultsFrom: "time_entries", data: { time_entries: [buildTimeEntry(task_id: null, project_id: 10, id: 2)], tasks: [], projects: [buildProject(id: 10)] }
          spy2 = jasmine.createSpy().andCallFake (collection) ->
            expect(collection.loaded).toBe true
          collection = base.data.loadCollection "time_entries", include: ["project", "task"], only: 2, success: spy2
