Exemple #1
0
			})

			It("should be silent", func() {
				Ω(stenographer.Calls).Should(BeEmpty())
			})

			It("should not notify the channel", func() {
				Ω(result).Should(BeEmpty())
			})
		})

		Context("once all of the parallel-suites end", func() {
			BeforeEach(func() {
				time.Sleep(200 * time.Millisecond)

				suiteSummary1.SuiteSucceeded = true
				suiteSummary1.NumberOfPassedExamples = 15
				suiteSummary1.NumberOfFailedExamples = 0
				suiteSummary2.SuiteSucceeded = false
				suiteSummary2.NumberOfPassedExamples = 5
				suiteSummary2.NumberOfFailedExamples = 3

				aggregator.SpecSuiteDidEnd(suiteSummary2)
				aggregator.SpecSuiteDidEnd(suiteSummary1)
				Eventually(func() interface{} {
					return stenographer.Calls
				}).Should(HaveLen(1))
			})

			It("should announce the end of the suite", func() {
				compositeSummary := stenographer.Calls[0].Args[0].(*types.SuiteSummary)