github.com/wanddynosios/cli@v7.1.0+incompatible/integration/v6/isolated/unset_env_command_test.go (about)

     1  package isolated
     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("unset-env command", func() {
    12  	Describe("help", func() {
    13  		When("--help flag is set", func() {
    14  			It("displays command usage to output", func() {
    15  				session := helpers.CF("unset-env", "--help")
    16  
    17  				Eventually(session).Should(Say("NAME:"))
    18  				Eventually(session).Should(Say("unset-env - Remove an env variable from an app"))
    19  				Eventually(session).Should(Say("USAGE:"))
    20  				Eventually(session).Should(Say("cf unset-env APP_NAME ENV_VAR_NAME"))
    21  				Eventually(session).Should(Say("ALIAS:"))
    22  				Eventually(session).Should(Say("ue"))
    23  				Eventually(session).Should(Say("SEE ALSO:"))
    24  				Eventually(session).Should(Say("apps, env, restart, set-running-environment-variable-group, set-staging-environment-variable-group"))
    25  				Eventually(session).Should(Exit(0))
    26  			})
    27  		})
    28  	})
    29  })