Type: "git", Source: atc.Source{"uri": "http://example.com"}, })) Ω(versions).Should(Equal([]atc.Version{ {"version": "1"}, {"version": "2"}, {"version": "3"}, })) }) }) Context("when checking fails", func() { disaster := errors.New("nope") BeforeEach(func() { fakeResource.CheckReturns(nil, disaster) }) It("exits with the failure", func() { Eventually(process.Wait()).Should(Receive(Equal(disaster))) }) }) Context("when the pipeline is paused", func() { BeforeEach(func() { fakeRadarDB.IsPausedReturns(true, nil) }) It("exits the process", func() { Consistently(times, 500*time.Millisecond).ShouldNot(Receive()) })