Пример #1
0
					State: types.SpecStateFailed,
				}
				reporter.AfterSuiteDidRun(summary)

				Ω(stenographer.Calls()).Should(HaveLen(1))
				Ω(stenographer.Calls()[0]).Should(Equal(call("AnnounceAfterSuiteFailure", summary, false, true)))
			})
		})
	})

	Describe("SpecWillRun", func() {
		Context("When running in verbose mode", func() {
			Context("and the spec will run", func() {
				BeforeEach(func() {
					spec = &types.SpecSummary{}
					reporter.SpecWillRun(spec)
				})

				It("should announce that the spec will run", func() {
					Ω(stenographer.Calls()).Should(HaveLen(1))
					Ω(stenographer.Calls()[0]).Should(Equal(call("AnnounceSpecWillRun", spec)))
				})
			})

			Context("and the spec will not run", func() {
				Context("because it is pending", func() {
					BeforeEach(func() {
						spec = &types.SpecSummary{
							State: types.SpecStatePending,
						}
						reporter.SpecWillRun(spec)