github.com/franc20/ayesa_sap@v7.0.0-beta.28.0.20200124003224-302d4d52fa6c+incompatible/integration/helpers/app_test.go (about) 1 package helpers_test 2 3 import ( 4 "code.cloudfoundry.org/cli/integration/helpers" 5 . "github.com/onsi/ginkgo" 6 . "github.com/onsi/gomega" 7 . "github.com/onsi/gomega/gexec" 8 ) 9 10 func ExampleWithHelloWorldApp() { 11 var appName string 12 13 When("the app exists", func() { 14 BeforeEach(func() { 15 appName = helpers.PrefixedRandomName("app") 16 17 helpers.WithHelloWorldApp(func(appDir string) { 18 Eventually(helpers.CustomCF(helpers.CFEnv{WorkingDirectory: appDir}, "push", appName)).Should(Exit(0)) 19 }) 20 }) 21 }) 22 }