title: spy on jquery ui widget in jasmine
body: <p>I have a jquery ui widget defined like this:</p>
  
  <pre><code>$.widget("ui.someWidget",
    options: {}, _create = function() { doSomething(); 
  });
  </code></pre>
  
  <p>Now i tried to spy on it like that:</p>
  
  <pre><code>var ui_spy = spyOn($.fn, "someWidget");
  $('#something').someWidget();
  expect(ui_spy).toHaveBeenCalled();
  
  var ui_spy = spyOn($.ui, "someWidget");
  $('#something').someWidget();
  expect(ui_spy).toHaveBeenCalled();
  </code></pre>
  
  <p>Both return false... what am I doing wrong?</p>