title: Jasmine 2.0: Asynchronous test case
body: <p>I am trying to perform an asynchronous unit test:</p>
  
  <pre><code> it('Async thing', function (done) {
        scope.$on('async-stuff-happened', function (e) {
           console.log(e);
           done();
           expect(e.stuff).toEqual("stuff");
       });
       scope.ayncStuff();
   });
  </code></pre>
  
  <p>I can see in the console the line <code>console.log(e)</code> executed, but the test result is :</p>
  
  <pre><code>SPEC HAS NO EXPECTATIONS Async thing
  </code></pre>
  
  <p>What am I missing?</p>