JustBeforeEach(func() { reporter.SpecDidComplete(spec) }) BeforeEach(func() { spec = &types.SpecSummary{} }) Context("When the spec passed", func() { BeforeEach(func() { spec.State = types.SpecStatePassed }) Context("When the spec was a measurement", func() { BeforeEach(func() { spec.IsMeasurement = true }) It("should announce the measurement", func() { Ω(stenographer.Calls()[0]).Should(Equal(call("AnnounceSuccesfulMeasurement", spec, false))) }) }) Context("When the spec is slow", func() { BeforeEach(func() { spec.RunTime = time.Second }) It("should announce that it was slow", func() { Ω(stenographer.Calls()[0]).Should(Equal(call("AnnounceSuccesfulSlowSpec", spec, false))) })