       modalElement          = $compile("<mac-modal id='test-modal' mac-modal-before-show='beforeShow()'></mac-modal>") $rootScope
       $rootScope.$digest()
 
+      expect($rootScope.beforeShow).not.toHaveBeenCalled()
+
       modal.show "test-modal"
       $timeout.flush()
 

      modalElement      = $compile("<mac-modal id='test-modal' mac-modal-open='opened()'></mac-modal>") $rootScope
      $rootScope.$digest()

      modal.show "test-modal"
      $timeout.flush()


      modalElement         = $compile("<mac-modal id='test-modal' mac-modal-after-show='afterShow()'></mac-modal>") $rootScope
      $rootScope.$digest()

      expect($rootScope.afterShow).not.toHaveBeenCalled()

      modal.show "test-modal"
      $timeout.flush()

