Commit f19330e4 authored by Mike Greiling's avatar Mike Greiling

fix right_sidebar_spec ajax call

parent 7a2a9bb4
......@@ -65,9 +65,10 @@
});
it('should broadcast todo:toggle event when add todo clicked', function() {
var todos = getJSONFixture('todos.json');
spyOn(jQuery, 'ajax').and.callFake(function() {
var d = $.Deferred();
var response = getJSONFixture('todos.json');
var response = todos;
d.resolve(response);
return d.promise();
});
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment