An example for stubbing $.ajax:

```js
//reference the real method, we need to fix the patch later
var realAjax = $.ajax;

$.ajax = function(config) {
    var data = {}; //put some good json data here
    config.success(data);
}

//write tests, make sure render is called and the dom has been updated

//fix the patch
$.ajax = realAjax;
```