BeforeEach(func() { req = newTestRequest("") req.Form = url.Values{":process_guid": []string{"process-guid-0"}} }) JustBeforeEach(func() { handler.Delete(responseRecorder, req) }) Context("when deleting lrp from BBS succeeds", func() { BeforeEach(func() { fakeLegacyBBS.RemoveDesiredLRPByProcessGuidReturns(nil) }) It("calls the BBS to remove the desired LRP", func() { Expect(fakeLegacyBBS.RemoveDesiredLRPByProcessGuidCallCount()).To(Equal(1)) _, actualProcessGuid := fakeLegacyBBS.RemoveDesiredLRPByProcessGuidArgsForCall(0) Expect(actualProcessGuid).To(Equal("process-guid-0")) }) It("responds with 204 NO CONTENT", func() { Expect(responseRecorder.Code).To(Equal(http.StatusNoContent)) }) It("returns no body", func() { Expect(responseRecorder.Body.Bytes()).To(BeEmpty()) }) }) Context("when reading from the BBS fails", func() { BeforeEach(func() {