title: Angular directive testing select options
body: <p>How do you select an option in an angular directive test?  </p>
  
  <pre><code> var options = elem.find('#test-code-select option');
   expect(angular.element(options[0]).text()).to.equal('234');
   expect(angular.element(options[1]).text()).to.equal('236');
  </code></pre>
  
  <p>These work fine, but how do I manually force the selection of an option?</p>
  
  <pre><code>angular.element(options[1]).click(); //nope
  angular.element(options[1]).trigger('click'); //nope
  angular.element(options[1]).attr('selected', true); //nope
  </code></pre>
  
  <p>EDIT:</p>
  
  <p>The directive template includes a select with an internal ng-model, I suspect this is the cause of the problem:</p>
  
  <pre><code>&lt;select id='test-code-select' ng-options='code as code for code in codeList' ng-model='code'&gt;
  </code></pre>