title: Private methods causing jasmine tests to fail
body: <p>I'm trying to test a function similar to the one below using Jasmine</p>
  
  <pre><code>closure.respond = function (value){ 
  if(value)
  {
      thisIsAPrivateMethod();
  
  }
  thisIsAPublicMethod();
  
  }
  </code></pre>
  
  <p>My Test looks like this</p>
  
  <pre><code>    it('will display the calendar widget when value is true', function(){
  
      value=true
      closure.respond(value);
      expect(closure.thisIsAPublicMethod).toHaveBeenCalled();
  )
  
  })
  </code></pre>
  
  <p>Whenever I run the test I get an exception in the jasmine test runner that states that a method that is called inside the private function does not exist. (Object # has no method 'methodName'
  )</p>
  
  <p>I'm not concerned with the inner workings of the private function, how can I just ignore that call? </p>
  
  <p>Can I ignore it? Obviously I can't/shouldn't spy on it as it is private. 
  Any direction would be greatly appreciated.</p>
  
  <p>Thanks</p>