     beforeEach module cfg.ngApp
 
     beforeEach inject ($injector) ->
+      $location = $injector.get '$location'
       $q = $injector.get '$q'
       $rootScope = $injector.get '$rootScope'
       factory = $injector.get 'menuFactory'


      factory.set dfd, data

      $rootScope.$digest()
  'factory/menu-factory'
], (cfg, A) ->
  describe 'Menu factory', () ->
    $location = null
    $q = null
    $rootScope = null
    factory = null
