From c1e679ff8d6a5fcf407c8554c8b921730d3f3ae3 Mon Sep 17 00:00:00 2001 From: Dan Hansen Date: Fri, 25 Feb 2011 18:56:03 -0600 Subject: [PATCH] fix syntax error and spec --- spec/javascripts/contact-list-spec.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/javascripts/contact-list-spec.js b/spec/javascripts/contact-list-spec.js index 6dc20a316..a49ac7636 100644 --- a/spec/javascripts/contact-list-spec.js +++ b/spec/javascripts/contact-list-spec.js @@ -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); } - ); + }); }); }); });