hybridgroup.gobot/gobot_suite_test.go

21 lines
301 B
Go
Raw Normal View History

package gobot
2013-11-15 08:08:08 +08:00
import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
2013-12-31 14:04:23 +08:00
"log"
2013-11-15 08:08:08 +08:00
"testing"
)
2013-12-31 14:04:23 +08:00
type null struct{}
func (null) Write(p []byte) (int, error) {
return len(p), nil
}
2013-11-15 08:08:08 +08:00
func TestGobot(t *testing.T) {
2013-12-31 14:04:23 +08:00
log.SetOutput(new(null))
2013-11-15 08:08:08 +08:00
RegisterFailHandler(Fail)
RunSpecs(t, "Gobot Suite")
}