github.com/Thanhphan1147/cloudfoundry-cli@v7.1.0+incompatible/actor/pushaction/version_test.go (about) 1 package pushaction_test 2 3 import ( 4 . "code.cloudfoundry.org/cli/actor/pushaction" 5 "code.cloudfoundry.org/cli/actor/pushaction/pushactionfakes" 6 . "github.com/onsi/ginkgo" 7 . "github.com/onsi/gomega" 8 ) 9 10 var _ = Describe("Version Check Actions", func() { 11 var ( 12 actor *Actor 13 fakeV2Actor *pushactionfakes.FakeV2Actor 14 ) 15 16 BeforeEach(func() { 17 actor, fakeV2Actor, _, _ = getTestPushActor() 18 }) 19 20 Describe("CloudControllerAPIVersion", func() { 21 It("returns the V2 CC API version", func() { 22 expectedVersion := "2.75.0" 23 fakeV2Actor.CloudControllerAPIVersionReturns(expectedVersion) 24 Expect(actor.CloudControllerV2APIVersion()).To(Equal(expectedVersion)) 25 }) 26 }) 27 })