title: Testing toUpperCase with Jasmine
body: <p>I'm trying to test if the <code>String.toUpperCase</code> method is called with Jasmine. However whenever I try it just returns</p>
  
  <blockquote>
    <p>toUpperCase() method does not exist</p>
  </blockquote>
  
  <p>Here is my Jasmine test:</p>
  
  <pre><code>spyOn(String,"toUpperCase")
  $(@makeup.el).trigger(@e)
  expect(String.toUpperCase).toHaveBeenCalled()
  </code></pre>
  
  <p>Any ideas on how to test if that is called? It appears that <code>String</code> is a private class to the <code>window</code> object, and so I may not actually be able to test this. Please help. </p>