示例#1
0
				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)))
				})
			})

			Context("Otherwise", func() {
				It("should announce the succesful example", func() {
					Ω(stenographer.Calls[0]).Should(Equal(call("AnnounceSuccesfulExample", example)))
				})
			})
		})

		Context("When the example is pending", func() {