Exemplo n.º 1
0
		})

		Context("When the spec failed", func() {
			BeforeEach(func() {
				spec.State = types.SpecStateFailed
			})

			It("should announce the failed spec", func() {
				Ω(stenographer.Calls()[0]).Should(Equal(call("AnnounceSpecFailed", spec, false, true)))
			})
		})

		Context("in noisy pendings mode", func() {
			BeforeEach(func() {
				reporterConfig.Succinct = false
				reporterConfig.NoisyPendings = true
				reporter = reporters.NewDefaultReporter(reporterConfig, stenographer)
			})

			Context("When the spec is pending", func() {
				BeforeEach(func() {
					spec.State = types.SpecStatePending
				})

				It("should announce the pending spec, noisily", func() {
					Ω(stenographer.Calls()[0]).Should(Equal(call("AnnouncePendingSpec", spec, true)))
				})
			})
		})

		Context("in succinct mode", func() {