title: Jasmine 2.0 compatibility with Jasmine-Jquery
body: <p>I am having difficulty running my Jquery tests with the jasmine-jquery plugin. Here are the steps I have taken:</p>
  
  <ol>
  <li>gem install jasmine</li>
  <li>jasmine init</li>
  <li>add jquery and jasmine-jquery to the helpers folder</li>
  <li>Here is my repository <a href="https://github.com/shenst1/jasminesample" rel="nofollow">https://github.com/shenst1/jasminesample</a></li>
  </ol>
  
  <p>Here are my specs as recommended following these tutorials: <a href="https://www.youtube.com/watch?v=3Huh44nsZTw" rel="nofollow">https://www.youtube.com/watch?v=3Huh44nsZTw</a></p>
  
  <pre><code>describe("My Feature", function() {
    it("should add numbers", function() {
      expect(1+1).toBe(2);
     });
   });
  describe("experimentation", function() {
    var elem;
    beforeEach(function() {
    elem = $('&lt;div id="container"&gt;&lt;p&gt;Hello World&lt;/p&gt;&lt;/div&gt;');
    });
    it("allows us to serach with Css selectors", function() {
     expect(elem).toBe('#container');
     expect(elem).toContainElement('p');
      expect(elem).toEqual('#container');
     expect(elem).toEqual('p')
    });
   });
  </code></pre>
  
  <p>The first spec passes as expected but the second ones with jquery fail with the following errors: </p>
  
  <pre><code>    Expected { 0 : HTMLNode, length : 1 } to be '#container'.
      Error: Expected { 0 : HTMLNode, length : 1 } to be '#container'.
      at stack (http://localhost:8888/__jasmine__/jasmine.js:1293:17)
      at buildExpectationResult (http://localhost:8888/__jasmine__/jasmine.js:1270:14)
      at Spec.Env.expectationResultFactory        (http://localhost:8888/__jasmine__/jasmine.js:484:18)
      at Spec.addExpectationResult (http://localhost:8888/__jasmine__/jasmine.js:260:46)
      at Expectation.addExpectationResult (http://localhost:8888/__jasmine__/jasmine.js:442:21)
      at Expectation.toBe (http://localhost:8888/__jasmine__/jasmine.js:1209:12)
      at Object.&lt;anonymous&gt; (http://localhost:8888/__spec__/testSpec.js:12:18)
      at attemptSync (http://localhost:8888/__jasmine__/jasmine.js:1510:12)
      at QueueRunner.run (http://localhost:8888/__jasmine__/jasmine.js:1498:9)
      at QueueRunner.execute (http://localhost:8888/__jasmine__/jasmine.js:1485:10)
  TypeError: Object #&lt;Expectation&gt; has no method 'toContainElement'
  TypeError: Object #&lt;Expectation&gt; has no method 'toContainElement'
      at Object.&lt;anonymous&gt; (http://localhost:8888/__spec__/testSpec.js:13:18)
      at attemptSync (http://localhost:8888/__jasmine__/jasmine.js:1510:12)
  </code></pre>
  
  <p>It looks like the jquery matchers are not loading in properly. It appears it is converting the object to a string rather than check the html elements. I tried to use the jasmine-jquery.js version from the Support Jasmine v2.0 (version 1.5.92), but that failed with the same errors. 
  Do I need to roll back jasmine versions to support Jquery or am I just missing something about how to make it work with jquery? 
  Thanks, 
  Andrew  </p>