Exemple #1
0
			})

			It("does not print 'app ports'", func() {
				Expect(err).NotTo(HaveOccurred())

				Expect(ui.Outputs()).NotTo(ContainSubstrings(
					[]string{"app ports:"},
				))
			})
		})

		Context("when the GetApplication model includes a buildpack", func() {
			// this should be the GetAppSummary model
			BeforeEach(func() {
				getApplicationModel.Buildpack = "fake-buildpack"
				getApplicationModel.DetectedBuildpack = ""
				applicationRequirement.GetApplicationReturns(getApplicationModel)
			})

			It("prints the buildpack", func() {
				Expect(err).NotTo(HaveOccurred())

				Expect(ui.Outputs()).To(ContainSubstrings(
					[]string{"buildpack", "fake-buildpack"},
				))
			})
		})

		Context("when the GetApplication Model includes a detected buildpack", func() {
			// this should be the GetAppSummary model
			BeforeEach(func() {