github.com/chenbh/concourse/v6@v6.4.2/fly/commands/internal/flaghelpers/resource_flag_test.go (about) 1 package flaghelpers_test 2 3 import ( 4 . "github.com/chenbh/concourse/v6/fly/commands/internal/flaghelpers" 5 6 . "github.com/onsi/ginkgo" 7 . "github.com/onsi/gomega" 8 ) 9 10 var _ = Describe("ResourceFlag", func() { 11 Context("when there is only a pipeline specified", func() { 12 It("displays an error message", func() { 13 resourceFlag := &ResourceFlag{} 14 15 err := resourceFlag.UnmarshalFlag("pipeline") 16 Expect(err).To(MatchError("argument format should be <pipeline>/<resource>")) 17 }) 18 }) 19 })