github.com/loggregator/cli@v6.33.1-0.20180224010324-82334f081791+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  })