fix two parse tests to actually have something to parse

This commit is contained in:
Adam Krebs
2013-02-13 00:09:26 -05:00
parent 0b5774b311
commit 614f0b8311

View File

@@ -410,7 +410,7 @@ $(document).ready(function() {
};
collection.url = '/test';
collection.fetch();
this.syncArgs.options.success();
this.syncArgs.options.success({foo: 'bar'});
equal(counter, 1);
});
@@ -1011,7 +1011,7 @@ $(document).ready(function() {
}));
var ajax = Backbone.ajax;
Backbone.ajax = function (params) {
_.defer(params.success);
_.defer(params.success, {foo: 'bar'});
return {someHeader: 'headerValue'};
};
collection.fetch({