github.com/lukasheimann/cloudfoundrycli@v7.1.0+incompatible/command/translatableerror/minimum_cli_version_not_met_error_test.go (about) 1 package translatableerror_test 2 3 import ( 4 . "code.cloudfoundry.org/cli/command/translatableerror" 5 6 . "github.com/onsi/ginkgo" 7 . "github.com/onsi/gomega" 8 ) 9 10 var _ = Describe("MinimumCLIVersionNotMetError", func() { 11 Describe("Error", func() { 12 When("BinaryVersion is not empty", func() { 13 It("returns a template with the value of the BinaryVersion field", func() { 14 err := MinimumCLIVersionNotMetError{ 15 BinaryVersion: "1.2.3", 16 } 17 18 Expect(err.Error()).To(Equal("Cloud Foundry API version {{.APIVersion}} requires CLI version {{.MinCLIVersion}}. You are currently on version {{.BinaryVersion}}. To upgrade your CLI, please visit: https://github.com/cloudfoundry/cli#downloads")) 19 }) 20 }) 21 }) 22 })