title: Jasmine Test for ng-mouseenter
body: <p>I'm having trouble testing my directive with an ng-mouseenter directive.</p>
  
  <p>I'd like to test several things, but first off, I need to test that the method supplied to ng-mouseenter is called.</p>
  
  <p>my test:</p>
  
  <pre><code>describe('hover tests', function () {
          it('the triggerPopover method should be called on hover', function() {
              spyOn($scope, 'triggerPopover');
              var ars = jQuery(view.find('article.the-class-im-looking-for'));
              jQuery(ars[0]).trigger('mouseenter');
              expect($scope.triggerPopover).toHaveBeenCalled();
          });
      });
  </code></pre>
  
  <p>my directive use:</p>
  
  <pre><code>&lt;article my-directive ng-mouseenter="triggerPopover();"&gt;&lt;/article&gt;
  </code></pre>
  
  <p>Result:</p>
  
  <blockquote>
    <p>Expected spy triggerPopover to have been called.
    The ng-mouseenter stuff doesn't seem to get called</p>
  </blockquote>