github.com/mook-as/cf-cli@v7.0.0-beta.28.0.20200120190804-b91c115fae48+incompatible/version/version_test.go (about)

     1  package version_test
     2  
     3  import (
     4  	"code.cloudfoundry.org/cli/version"
     5  	. "github.com/onsi/ginkgo"
     6  	. "github.com/onsi/gomega"
     7  )
     8  
     9  var _ = Describe("Version", func() {
    10  	Describe("VersionString", func() {
    11  		When("passed no ldflags", func() {
    12  			It("returns the default version", func() {
    13  				Expect(version.VersionString()).To(Equal("0.0.0-unknown-version"))
    14  			})
    15  		})
    16  	})
    17  })