github.com/cloudfoundry-attic/cli-with-i18n@v6.32.1-0.20171002233121-7401370d3b85+incompatible/integration/global/set_env_command_test.go (about) 1 package global 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/gbytes" 8 . "github.com/onsi/gomega/gexec" 9 ) 10 11 var _ = Describe("set-env command", func() { 12 Context("when the --help flag provided", func() { 13 It("displays the usage text", func() { 14 session := helpers.CF("set-env", "--help") 15 Eventually(session).Should(Say("NAME:")) 16 Eventually(session).Should(Say("set-env - Set an env variable for an app")) 17 Eventually(session).Should(Say("USAGE:")) 18 Eventually(session).Should(Say("cf set-env APP_NAME ENV_VAR_NAME ENV_VAR_VALUE")) 19 Eventually(session).Should(Say("ALIAS:")) 20 Eventually(session).Should(Say("se")) 21 Eventually(session).Should(Say("SEE ALSO:")) 22 Eventually(session).Should(Say("apps, env, restart, set-running-environment-variable-group, set-staging-environment-variable-group, unset-env")) 23 Eventually(session).Should(Exit(0)) 24 }) 25 }) 26 })