initial commit
[govpp.git] / vendor / github.com / onsi / gomega / matchers / be_false_matcher_test.go
diff --git a/vendor/github.com/onsi/gomega/matchers/be_false_matcher_test.go b/vendor/github.com/onsi/gomega/matchers/be_false_matcher_test.go
new file mode 100644 (file)
index 0000000..3965a2c
--- /dev/null
@@ -0,0 +1,20 @@
+package matchers_test
+
+import (
+       . "github.com/onsi/ginkgo"
+       . "github.com/onsi/gomega"
+       . "github.com/onsi/gomega/matchers"
+)
+
+var _ = Describe("BeFalse", func() {
+       It("should handle true and false correctly", func() {
+               Ω(true).ShouldNot(BeFalse())
+               Ω(false).Should(BeFalse())
+       })
+
+       It("should only support booleans", func() {
+               success, err := (&BeFalseMatcher{}).Match("foo")
+               Ω(success).Should(BeFalse())
+               Ω(err).Should(HaveOccurred())
+       })
+})