added support for string type
[govpp.git] / vendor / github.com / onsi / gomega / matchers / be_true_matcher_test.go
1 package matchers_test
2
3 import (
4         . "github.com/onsi/ginkgo"
5         . "github.com/onsi/gomega"
6         . "github.com/onsi/gomega/matchers"
7 )
8
9 var _ = Describe("BeTrue", func() {
10         It("should handle true and false correctly", func() {
11                 Ω(true).Should(BeTrue())
12                 Ω(false).ShouldNot(BeTrue())
13         })
14
15         It("should only support booleans", func() {
16                 success, err := (&BeTrueMatcher{}).Match("foo")
17                 Ω(success).Should(BeFalse())
18                 Ω(err).Should(HaveOccurred())
19         })
20 })