hybridgroup.gobot/api/api_suite_test.go

21 lines
295 B
Go
Raw Normal View History

2014-05-16 02:50:45 +08:00
package api
import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
"log"
"testing"
)
type null struct{}
func (null) Write(p []byte) (int, error) {
return len(p), nil
}
func TestApi(t *testing.T) {
log.SetOutput(new(null))
RegisterFailHandler(Fail)
RunSpecs(t, "Api Suite")
}