}) }) }) Describe("validating a job", func() { var job atc.JobConfig BeforeEach(func() { job = atc.JobConfig{ Name: "some-other-job", } }) Context("when a job has no name", func() { BeforeEach(func() { job.Name = "" config.Jobs = append(config.Jobs, job) }) It("returns an error", func() { Expect(validateErr).To(HaveOccurred()) Expect(validateErr.Error()).To(ContainSubstring( "jobs[2] has no name", )) }) }) Describe("plans", func() { Context("when multiple actions are specified in the same plan", func() { Context("when it's not just Get and Put", func() { BeforeEach(func() {