github.com/chenbh/concourse/v6@v6.4.2/fly/commands/internal/flaghelpers/job_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("JobFlag", func() { 11 Context("when there is only a pipeline specified", func() { 12 It("displays an error message", func() { 13 jobFlag := &JobFlag{} 14 15 err := jobFlag.UnmarshalFlag("pipeline") 16 Expect(err).To(MatchError("argument format should be <pipeline>/<job>")) 17 }) 18 }) 19 })