Packages: true, } }) It("executes without errors", func() { cmd = bmp.NewSlCommand(options, fakeBmpClient) rc, err := cmd.Execute([]string{"bmp", "sl", "--packages"}) Expect(rc).To(Equal(0)) Expect(err).ToNot(HaveOccurred()) }) }) Context("when executes sl --package-options 1", func() { BeforeEach(func() { fakeBmpClient.SlPackageOptionsResponse.Status = 200 fakeBmpClient.SlPackageOptionsErr = nil options = cmds.Options{ Verbose: false, PackageOptions: "1", } }) It("executes without errors", func() { cmd = bmp.NewSlCommand(options, fakeBmpClient) rc, err := cmd.Execute([]string{"bmp", "sl", "--package-options", "1"}) Expect(rc).To(Equal(0)) Expect(err).ToNot(HaveOccurred()) }) }) })