github.com/jghiloni/cli@v6.28.1-0.20170628223758-0ce05fe032a2+incompatible/integration/isolated/bind_route_service_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("bind-route-service command", func() {
    12  	Describe("help", func() {
    13  		It("includes a description of the options", func() {
    14  			session := CF("help", "bind-route-service")
    15  			Eventually(session).Should(Say("-c\\s+Valid JSON object containing service-specific configuration parameters, provided inline or in a file. For a list of supported configuration parameters, see documentation for the particular service offering."))
    16  			Eventually(session).Should(Say("--hostname, -n\\s+Hostname used in combination with DOMAIN to specify the route to bind"))
    17  			Eventually(session).Should(Say("--path\\s+Path used in combination with HOSTNAME and DOMAIN to specify the route to bind"))
    18  			Eventually(session).Should(Exit(0))
    19  		})
    20  	})
    21  })