title: jasmine test for $routeprovider resolve in config block
body: <p>i have the below in my module config block:</p>
  
  <pre><code>var appModule = angular.module('myApp',['ngRoute'])
  .config(['$httpProvider', '$routeProvider', '$locationProvider', '$translateProvider', function ($httpProvider, $routeProvider, $locationProvider, $translateProvider) {
  
      $locationProvider.html5Mode(true)
  
      $routeProvider
          .when('/services/main', {templateUrl: '/services/main/html/main.html', controller: 'MainCtrl', resolve: {
              myVar: function (varService) {
                  return varService.invokeService();
              }
          }})
  }])
  </code></pre>
  
  <p><strong>Spec File:</strong></p>
  
  <pre><code>describe("Unit Testing: config - ", function() {
  
  var appModule;
  var routes;
  
  beforeEach(function() {
      appModule = angular.module("myApp");
  });
  
  it('should test routeProvider', function() {
  
        inject(function($route, $location, $rootScope) {
            routes = $route;
        });
      }); 
  });
  </code></pre>
  
  <p>however, while running the test i am getting the below error:</p>
  
  <pre><code>Unit Testing: config -  should test routeProvider FAILED
  Error: [$injector:unpr] http://errors.angularjs.org/1.2.15/$injector/unpr?p0=%24routeProvider%20%3C-%20%24route
      at Error (native)
  </code></pre>
  
  <p>my karma config includes the angular-route.min.js file. Any suggestions will be helpful.</p>