From 614f0b83115b75c6f7894dea4e8b251b8de4700a Mon Sep 17 00:00:00 2001 From: Adam Krebs Date: Wed, 13 Feb 2013 00:09:26 -0500 Subject: [PATCH] fix two parse tests to actually have something to parse --- test/collection.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/collection.js b/test/collection.js index c67600b6..693ca920 100644 --- a/test/collection.js +++ b/test/collection.js @@ -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({