github.com/jenspinney/cli@v6.42.1-0.20190207184520-7450c600020e+incompatible/command/flag/buildpack_test.go (about)

     1  package flag_test
     2  
     3  import (
     4  	. "code.cloudfoundry.org/cli/command/flag"
     5  	. "github.com/onsi/ginkgo"
     6  	. "github.com/onsi/gomega"
     7  )
     8  
     9  var _ = Describe("Buildpack", func() {
    10  	var buildpack Buildpack
    11  
    12  	BeforeEach(func() {
    13  		buildpack = Buildpack{}
    14  	})
    15  
    16  	Describe("UnmarshalFlag", func() {
    17  		It("unmarshals into a filtered string", func() {
    18  			err := buildpack.UnmarshalFlag("default")
    19  			Expect(err).ToNot(HaveOccurred())
    20  			Expect(buildpack.IsSet).To(BeTrue())
    21  			Expect(buildpack.Value).To(BeEmpty())
    22  		})
    23  	})
    24  })