describe "applyOtUpdate", -> describe "when authorized", -> it "should publish a message on redis" it "should add the doc to the pending updates set in redis" it "should push the update into redis" describe "when not authorized", -> it "should return an error" it "should disconnect the client"