package cmd import ( "github.com/0xERR0R/blocky/log" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" ) var _ = Describe("Version command", func() { When("Version command is called", func() { log.Log().ExitFunc = nil It("should execute without error", func() { c := NewRootCommand() c.SetArgs([]string{"help"}) err := c.Execute() Expect(err).Should(Succeed()) }) }) })