title: Using chai-as-promised in protractor
body: <p>Following <a href="http://litutech.blogspot.com/2014/02/an-example-of-use-of-protractor-with.html" rel="nofollow">this example</a> I can get tests working with the expect syntax but not with the should syntax.</p>
  
  <p>The following works:</p>
  
  <pre><code>var expect = chai.expect;
  describe('expect syntax', function() {
      it('should work', function() {
          ...
          expect(promise).to.eventually.eql('something');
      });
  });
  </code></pre>
  
  <p>But this does not:</p>
  
  <pre><code>chai.should();
  describe('should syntax', function() {
      it('should work', function() {
          ...
          (true).should.be.true;
          promise.should.eventually.eql('something');
      });
  });
  </code></pre>
  
  <p>Since I get the following error: <code>TypeError: Cannot read property 'eventually' of undefined</code> I assume that <em>should</em> does its usual thing of extending the Object prototype but this somehow doesn't apply to the webdriver promise Object. What is wrong here?</p>