title: AngularJS jasmine isolateScope() returns undefined
body: <p>I'm expecting to get something from isolated scope out of my <code>help-button</code> directive. </p>
  
  <pre><code>  it('should contain proper scope, depending on attributes', function() {
  
          var el = compile('&lt;help-button context-id="1"&gt;&lt;/help-button&gt;')(scope);
          scope.$digest();
  
  
          console.log("el: " + el);
          console.log('Isolated scope: ' + el.isolateScope());
     ..
     });
  </code></pre>
  
  <p>-- before each test it does</p>
  
  <pre><code>beforeEach(inject(function($compile, $rootScope, $injector) {
  
      compile = $compile;
      scope = $rootScope.$new(); ...
  </code></pre>
  
  <p>it prints: </p>
  
  <pre><code>'el: [Object Object]'
  'Isolated scope: undefined'
  </code></pre>
  
  <p>The question is: why I'm getting back <strong>undefined</strong>? Even if there is nothing in isolated scope, it still should be empty {} object. But anyway - the test is wrong - it does not show the isolated scope which (in real) contains data in there.</p>