title: Is there a spyOn analogue in QUnit?
body: <p>I'm writing specs for different test cases for Jasmine and QUnit to compare them and they looked the same before I needed to write a test to check if an event is binded to an element.</p>
  
  <p>Event binding looks like</p>
  
  <pre><code>$('.page').live('click', function() { page_clicked( $(this) ) });
  </code></pre>
  
  <p><code>page_clicked</code> is a private method but it calls for a public method of another module.</p>
  
  <p>Here is a Jasmine spec:</p>
  
  <pre><code>it('should bind events to pages', function() {
      spyOn( search, 'get_results' );
  
      $('.page:eq(0)').trigger('click');
  
      expect( search.get_results ).toHaveBeenCalled();
  });
  </code></pre>
  
  <p>This test works. Now I'm trying to write the same test for QUnit and can't find anything similar to spyOn. How to write this test for QUnit?</p>