It("returns error if removing jobs directory fails", func() {
				fs.RemoveAllStub = func(_ string) error {
					return errors.New("fake-remove-all-error")
				}

				err := monit.RemoveAllJobs()
				Expect(err).To(HaveOccurred())
				Expect(err.Error()).To(ContainSubstring("fake-remove-all-error"))
			})
		})
	})

	Describe("Unmonitor", func() {
		BeforeEach(func() {
			client.ServicesInGroupServices = []string{"fake-srv-1", "fake-srv-2", "fake-srv-3"}
			client.UnmonitorServiceErrs = []error{nil, nil, nil}
		})

		Context("when all services succeed to be unmonitored", func() {
			It("returns no error because all services got unmonitored", func() {
				err := monit.Unmonitor()
				Expect(err).ToNot(HaveOccurred())

				Expect(client.ServicesInGroupName).To(Equal("vcap"))
				Expect(client.UnmonitorServiceNames).To(Equal(
					[]string{"fake-srv-1", "fake-srv-2", "fake-srv-3"}))
			})
		})

		Context("when at least one service fails to be unmonitored", func() {
			BeforeEach(func() {