github.com/mook-as/cf-cli@v7.0.0-beta.28.0.20200120190804-b91c115fae48+incompatible/integration/v7/push/targeting_test.go (about) 1 package push 2 3 import ( 4 "code.cloudfoundry.org/cli/integration/helpers" 5 . "github.com/onsi/ginkgo" 6 ) 7 8 var _ = Describe("targeting the correct environment", func() { 9 var ( 10 appName string 11 ) 12 13 BeforeEach(func() { 14 appName = helpers.PrefixedRandomName("app") 15 }) 16 17 When("the environment is not setup correctly", func() { 18 It("fails with the appropriate errors", func() { 19 helpers.CheckEnvironmentTargetedCorrectly(true, true, organization, PushCommandName, appName) 20 }) 21 }) 22 })