github.com/dcarley/cf-cli@v6.24.1-0.20170220111324-4225ff346898+incompatible/integration/plugin/installing_test.go (about) 1 package plugin 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("installing plugins", func() { 12 Context("when the plugin contains command names that match core commands", func() { 13 It("displays an error on installation", func() { 14 session := helpers.CF("install-plugin", "-f", overrideTestPluginPath) 15 Eventually(session).Should(Say("Command `push` in the plugin being installed is a native CF command/alias.")) 16 Eventually(session).Should(Exit(1)) 17 }) 18 }) 19 })