Describe("determining if a job's builds are publically viewable", func() { Context("when the job is publically viewable", func() { BeforeEach(func() { config = atc.Config{ Jobs: atc.JobConfigs{ { Name: "some-job", Public: true, }, }, } }) It("returns true", func() { public, _ := config.JobIsPublic("some-job") Expect(public).To(BeTrue()) }) It("does not error", func() { _, err := config.JobIsPublic("some-job") Expect(err).NotTo(HaveOccurred()) }) }) Context("when the job is not publically viewable", func() { BeforeEach(func() { config = atc.Config{ Jobs: atc.JobConfigs{ { Name: "some-job",