title: AngularJS $httpBackend - "No more request expected" error
body: <p>It seems <a href="http://jsfiddle.net/EgMpe/8/" rel="noreferrer">this</a> is working solution that shows how to work with <code>$httpBacked</code> <a href="http://jsfiddle.net/EgMpe/8/" rel="noreferrer">http://jsfiddle.net/EgMpe/8/</a></p>
  
  <p>But for my case:</p>
  
  <p><strong>routes</strong></p>
  
  <pre><code>app.config(['$routeProvider', function($routeProvider) { $routeProvider.
  
      when('/',  {templateUrl: 'partials/user-list.html'}).
  </code></pre>
  
  <p>...</p>
  
  <p><strong>faked service:</strong></p>
  
  <pre><code>app.run(function($httpBackend) {
  
          var users = [{"id":1,"name":"bob","email":"bob@bobs.com"}, {"id":2,"name":"bob2","email":"bob2@bobs.com"}]
  
          $httpBackend.whenGET('/rest/users').respond(function(method,url,data) {
              console.log("Getting users");
              return [200, users, {}];
          });
      });
  </code></pre>
  
  <p>..</p>
  
  <p><strong>real service:</strong></p>
  
  <pre><code>services.factory('Users', function($resource){
      return $resource('/rest/users', {}, {
          get:        {method: 'GET', isArray:true}
      });
  });
  </code></pre>
  
  <p>I have <strong>error</strong> when go to my "/" route that redirects me to <code>user-list.html</code> page:</p>
  
  <blockquote>
    <p>Error: Unexpected request: GET partials/user-list.html No more request
    expected
        at $httpBackend .../mysite/public/angular/libs/angular-1.2.0/angular-mocks.js:1060:9)</p>
  </blockquote>
  
  <p><strong>Question1:</strong> Does <code>httpBackend</code> prevent doing any other <code>http</code> request? </p>
  
  <p>I tried to use <strong>passThrough</strong> method to let http hit real server side:</p>
  
  <pre><code>$httpBackend.whenGET(/^\/mysite\//).passThrough();
  </code></pre>
  
  <p>But this does not help.</p>