ipld-eth-server/vendor/github.com/onsi/gomega/gstruct/ignore_test.go
Matt K 293dd2e848 Add vendor dir (#16) (#4)
* Add vendor dir so builds dont require dep

* Pin specific version go-eth version
2018-01-29 13:44:18 -06:00

24 lines
488 B
Go

package gstruct_test
import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
. "github.com/onsi/gomega/gstruct"
)
var _ = Describe("Ignore", func() {
It("should always succeed", func() {
Ω(nil).Should(Ignore())
Ω(struct{}{}).Should(Ignore())
Ω(0).Should(Ignore())
Ω(false).Should(Ignore())
})
It("should always fail", func() {
Ω(nil).ShouldNot(Reject())
Ω(struct{}{}).ShouldNot(Reject())
Ω(1).ShouldNot(Reject())
Ω(true).ShouldNot(Reject())
})
})