title: Jasmine calls.length and callCount are undefined
body: <p>I'm trying to test my chrome extension with <a href="http://pivotal.github.io/jasmine/">Jasmine</a> but I'm having trouble getting <code>calls.length</code> and <code>callCount</code> to behave as expected. Both cases return <code>undefined</code>.</p>
  
  <p>I've included a sample of the code and the spec. Here's the rest of the code if it helps: <a href="https://github.com/DruRly/kamikaze/tree/closeIdleTab">https://github.com/DruRly/kamikaze/tree/closeIdleTab</a></p>
  
  <p><strong>How to reproduce:</strong> </p>
  
  <ul>
  <li><code>git clone https://github.com/DruRly/kamikaze/tree/closeIdleTab</code></li>
  <li><code>cd kamikaze</code></li>
  <li><code>open SpecRunner.html</code></li>
  </ul>
  
  <p>spec/kamikazeSpec.js</p>
  
  <pre><code>describe("kamikaze", function() {
    describe("closeIdleTabs", function(){
      it("calls closeIdleTab for each tab received", function(){
        spyOn(kamikaze, 'closeIdleTab');
  
        kamikaze.closeIdleTabs([1,2,3]);
        expect(kamikaze.closeIdleTab.calls.length).toBe(3);
      })
    })
  })
  </code></pre>
  
  <p>src/kamikaze.js</p>
  
  <pre><code>kamikaze = {
    ...
  
    closeIdleTabs: function(tabs){
      tabs.forEach(function(tab){
        test.closeIdleTab(tab);
      })
    },
  
    closeIdleTab: function(tab){
      if(tabTimeStamps[tab.id]){
        var secondsSinceUpdated = getSecondsSinceUpdated(tab.id)
        if(secondsSinceUpdated &gt; (minutesUntilIdle * 60)){
          chrome.tabs.remove(tab.id)
        }
      }
    },
  
    ...
  }
  </code></pre>