title: Angular mock $httpBackend give No pending request to flush
body: <p>Following the official guide at <a href="http://docs.angularjs.org/api/ngMock/service/$httpBackend" rel="noreferrer">angularJS $httpBackend</a> I'll do this test, but Karma give me this <strong>error</strong>: 
  <code>Error: No pending request to flush !
          at Function.$httpBackend.flush</code></p>
  
  <p><strong>Test</strong></p>
  
  <pre><code>'use strict';
  
  describe('profileCtrl', function () {
  var scope, $httpBackend;
  
  beforeEach(angular.mock.module('maap'));
  beforeEach(angular.mock.inject(function($rootScope, $controller, _$httpBackend_){
  
      $httpBackend = _$httpBackend_;
      $httpBackend.when('GET', 'profile').respond([{id: 1, name: 'Bob'}]);
      scope = $rootScope.$new();
      $controller('profileCtrl', {$scope: scope});
  }))
  
  it('should fetch list of users', function(){
      $httpBackend.flush();
      expectGET(scope.current_user.length).toBe(1);
      expect(scope.current_user[0].name).toBe('Bob');
  });
  </code></pre>
  
  <p>});</p>
  
  <p>for this simple <strong>controller</strong>:</p>
  
  <pre><code>'use strict';
  
   angular.module('maap').controller('profileCtrl', function($scope, UserService) {
  
  $scope.current_user = UserService.details(0);
  </code></pre>
  
  <p>});</p>