fix syntax error and spec

This commit is contained in:
Dan Hansen 2011-02-25 18:56:03 -06:00
parent 3538bda06d
commit c1e679ff8d

View file

@ -9,13 +9,13 @@ describe("Contact List", function() {
var id = '3';
spyOn($,'ajax').andCallThrough();
List.disconnectUser(id);
expect($.ajax).toHaveBeenCalledWith(
url: "/people/" + id,
expect($.ajax).toHaveBeenCalledWith({
url: "/contacts/" + id,
type: "DELETE",
success: function(){
$('.contact_list li[data-guid='+id+']').fadeOut(200);
}
);
});
});
});
});