4 . "github.com/onsi/ginkgo"
5 . "github.com/onsi/gomega"
6 . "github.com/onsi/gomega/matchers"
9 var _ = Describe("BeTrue", func() {
10 It("should handle true and false correctly", func() {
11 Ω(true).Should(BeTrue())
12 Ω(false).ShouldNot(BeTrue())
15 It("should only support booleans", func() {
16 success, err := (&BeTrueMatcher{}).Match("foo")
17 Ω(success).Should(BeFalse())
18 Ω(err).Should(HaveOccurred())