github.com/cloudfoundry-community/cloudfoundry-cli@v6.44.1-0.20240130060226-cda5ed8e89a5+incompatible/cf/formatters/bools_test.go (about) 1 package formatters_test 2 3 import ( 4 . "code.cloudfoundry.org/cli/cf/formatters" 5 . "github.com/onsi/ginkgo" 6 . "github.com/onsi/gomega" 7 ) 8 9 var _ = Describe("bool formatting", func() { 10 Describe("Allowed", func() { 11 It("is 'allowed' when true", func() { 12 Expect(Allowed(true)).To(Equal("allowed")) 13 }) 14 15 It("is 'disallowed' when false", func() { 16 Expect(Allowed(false)).To(Equal("disallowed")) 17 }) 18 }) 19 })