From 39653bc282e62c50e93e1ea9f4b34c06d19116b5 Mon Sep 17 00:00:00 2001 From: danielmbarlow Date: Wed, 5 Nov 2014 08:23:24 +0100 Subject: [PATCH 1/2] Tutorial explain need for $httpBackend.flush There is an excellent explanation for the need for this in the documentation that may be helpful to tutorial users, so I added a link to it. --- docs/content/tutorial/step_05.ngdoc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/content/tutorial/step_05.ngdoc b/docs/content/tutorial/step_05.ngdoc index 326b7cad7648..6f970d2d7a9d 100644 --- a/docs/content/tutorial/step_05.ngdoc +++ b/docs/content/tutorial/step_05.ngdoc @@ -236,7 +236,9 @@ the response is received: ``` * We flush the request queue in the browser by calling `$httpBackend.flush()`. This causes the -promise returned by the `$http` service to be resolved with the trained response. +promise returned by the `$http` service to be resolved with the trained response. See +'Flushing HTTP requests' in the {@link ng.$httpBackend $httpBackend} documentation for +a full explanation of why this is necessary. * We make the assertions, verifying that the phone model now exists on the scope. From 3d47074b3a099ecbc3c3677e04aa1765f8d33eb8 Mon Sep 17 00:00:00 2001 From: danielmbarlow Date: Wed, 5 Nov 2014 08:58:54 +0100 Subject: [PATCH 2/2] doc:Changed link to mock httpBackend doc:The actual documentation is on a subpage of httpBackend, so I changed the link to that page. --- docs/content/tutorial/step_05.ngdoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/content/tutorial/step_05.ngdoc b/docs/content/tutorial/step_05.ngdoc index 6f970d2d7a9d..9f1aef834ad8 100644 --- a/docs/content/tutorial/step_05.ngdoc +++ b/docs/content/tutorial/step_05.ngdoc @@ -237,7 +237,7 @@ the response is received: * We flush the request queue in the browser by calling `$httpBackend.flush()`. This causes the promise returned by the `$http` service to be resolved with the trained response. See -'Flushing HTTP requests' in the {@link ng.$httpBackend $httpBackend} documentation for +'Flushing HTTP requests' in the {@link ngMock.$httpBackend mock $httpBackend} documentation for a full explanation of why this is necessary. * We make the assertions, verifying that the phone model now exists on the scope.