             .and.returnValue true
         spyOn Users, "currentUser"
             .and.returnValue _id: "user2"
+        spyOn Notifications, "removeByEventId"
+            .and.returnValue true
 
         c = Comments.collection._transform _id: "111", author: "user2"
         spyOn Comments, "findById"

                text: "abc"
        expect(Comments.collection.remove).toHaveBeenCalledWith "111"
        expect(Comments.findById).toHaveBeenCalledWith "111"
        
    it "should be possible to remove for admin", ->
        spyOn Comments.collection, "remove"

        expect(Comments.collection.remove).toHaveBeenCalledWith "111"
        expect(Comments.findById).toHaveBeenCalledWith "111"
        
    it "should return author, review and createdDats", ->
        spyOn Users, "findById"
            .and.returnValue "123"
        spyOn Reviews, "findById"
            .and.returnValue "456"
        
        c = Comments.collection._transform author: "user", review: "rev", text: "", createdAt: "1/2/3"
        a = c.getAuthor()
        r = c.getReview()
        d = c.createdDate()
            
        expect(a).toBe "123"
        expect(r).toBe "456"
        expect(d).toBe "1/2/3"
        expect(Users.findById).toHaveBeenCalledWith "user"
        expect(Reviews.findById).toHaveBeenCalledWith "rev"
        
