title: How to unit test a document.ready() function using jasmine
body: <p>How do you test document.ready block using Jasmine?
  To be more specific , if I have a block like this :</p>
  
  <pre><code>$(document).ready(
      function () {
          abc = true;
      }
  });
  </code></pre>
  
  <p>How do you test that the inner function was called when the document was ready, using Jasmine?</p>