示例#1
0
文件: handler_test.go 项目: ACPK/atc
								},
								{
									Name:    "group-without-job",
									Enabled: false,
								},
							}

							job = atc.Job{
								Name: "some-job",
							}

							fakeClient.BuildResourcesReturns(buildResources, true, nil)
						})

						It("populates the inputs and outputs for the builds returned", func() {
							Expect(fakeClient.BuildResourcesCallCount()).To(Equal(1))

							calledBuildID := fakeClient.BuildResourcesArgsForCall(0)
							Expect(calledBuildID).To(Equal(1))

							Expect(templateData.Builds).To(Equal(buildsWithResources))
						})

						It("includes the pagination info in the template", func() {
							Expect(templateData.Pagination).To(Equal(pagination))
						})

						Context("when there is no finished build", func() {
							BeforeEach(func() {
								fakeClient.JobReturns(job, true, nil)
							})