From b9462e4f2a6c8e6b4e73a4f147b65056b116a8cc Mon Sep 17 00:00:00 2001 From: Maxim Khlobystov Date: Wed, 12 Nov 2014 18:50:21 -0800 Subject: [PATCH] Got rid of the spec related to deletePrivateChatMessages() (the method didn't exist anymore). --- .../jasmine/server/unit/CollectionMethodsSpec.js | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/labs/meteor-client/app/tests/jasmine/server/unit/CollectionMethodsSpec.js b/labs/meteor-client/app/tests/jasmine/server/unit/CollectionMethodsSpec.js index 4759c0b97a..26f15723a6 100755 --- a/labs/meteor-client/app/tests/jasmine/server/unit/CollectionMethodsSpec.js +++ b/labs/meteor-client/app/tests/jasmine/server/unit/CollectionMethodsSpec.js @@ -107,18 +107,6 @@ describe("Collections", function () { }); }); - it("should be handled correctly by remove() on calling deletePrivateChatMessages()", function () { - spyOn(Meteor.Chat, "remove"); - - deletePrivateChatMessages("user001", "user002"); - - expect(Meteor.Chat.remove).toHaveBeenCalledWith({ - "message.chat_type": "PRIVATE_CHAT", - $or: [{ "message.from_userid": "user001", "message.to_userid": "user002" }, - { "message.from_userid": "user002", "message.to_userid": "user001" }] - }); - }); - //---------------------------------------------------------------------- // meetings.coffee //----------------------------------------------------------------------