title: Jasmine test on Ember.js Model with reopenClass
body: <p>My model looks like:</p>
  
  <pre><code>  App.MyUser = Ember.Object.extend();
    App.MyUser.reopenClass({
      attribute1: '',
      attribute2: '',
      getFunction: function() {
         ...
      },
      setFunction: function(foo) {
         ...
      }
    });
  </code></pre>
  
  <p>How to test the functions in jasmine?</p>
  
  <pre><code>   describe( "The user model", function () {  
                 var user = null;
              App = Ember.Application.create();
              beforeEach(function(){
                  user = App.MyUser.create();      
              });
  
              afterEach(function(){
                  user = null;
              });
  
              it("should have an get function", function(){
                  expect(user.getFunction).toBeDefined();
              });
          });
  </code></pre>
  
  <p>But I always get:</p>
  
  <pre><code> Expected undefined to be defined.
  </code></pre>
  
  <p>If I do my model like this:</p>
  
  <pre><code> App.MyUser = Ember.Object.extend({......
  </code></pre>
  
  <p>without reopenClass it works fine. But i need to use reopenClass. So how does it work?</p>