title: How to verify that an http request is not made at all?
body: <p>how to verify that none of http request method are invoked to do any request. I have this code :</p>
  
  <pre><code> $scope.getSubnetsPageDetails = function (pageNumber) {
          $http.get(URLS.subnetsPagesCount(pageNumber)).success(function (response) {
              $scope.pageDetails = response;
          }).error(function (response, errorCode) {
  
              });
      }; 
  </code></pre>
  
  <p>and this test :</p>
  
  <pre><code>it("should not allow request with negative page number", function () {
  
          scope.getSubnetsPageDetails(-1);
          //verify that htt.get is not invoked at all
  
      });
  </code></pre>
  
  <p>How to verify that http.get is not invoked ?</p>