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