 
     beforeEach inject ($injector, $rootScope, $controller) ->
       $scope = $rootScope.$new()
-      confirmationDialog = $injector.get("confirmationDialog")
       doAction = jasmine.createSpy("do action")
 
       $httpBackend.when("GET", "/databases.json").respond([])
       $controller window.DatabasesCtrl,
         $scope: $scope
-        confirmationDialog: confirmationDialog
         doAction: doAction
 
       $httpBackend.flush()


    beforeEach inject ($injector, $rootScope, $controller) ->
      $scope = $rootScope.$new()
      confirmationDialog = $injector.get("confirmationDialog")
      doAction = jasmine.createSpy("do action")

      $element = $("<div/>")

      $controller window.CollectionsCtrl,
          $scope: $scope
          $element: $element
          doAction: doAction

      $httpBackend.flush()
