github.com/cloudfoundry-attic/cli-with-i18n@v6.32.1-0.20171002233121-7401370d3b85+incompatible/integration/isolated/feature_flag_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("feature-flag command", func() { 12 BeforeEach(func() { 13 helpers.LoginCF() 14 }) 15 16 It("displays feature flag settings", func() { 17 session := helpers.CF("feature-flag", "user_org_creation") 18 Eventually(session).Should(Say("Retrieving status of user_org_creation as")) 19 Eventually(session).Should(Say("user_org_creation\\s+(dis|en)abled")) 20 Eventually(session).Should(Exit(0)) 21 }) 22 })