This commit is contained in:
lealife
2017-06-22 13:18:16 +08:00
parent 2654b684df
commit b140cd538f
549 changed files with 185885 additions and 1 deletions

View File

@@ -0,0 +1,23 @@
package tests
import (
"github.com/revel/revel/testing"
)
type ApplicationTest struct {
testing.TestSuite
}
func (t *ApplicationTest) Before() {
println("Set up")
}
func (t *ApplicationTest) TestThatIndexPageWorks() {
t.Get("/")
t.AssertOk()
t.AssertContentType("text/html; charset=utf-8")
}
func (t *ApplicationTest) After() {
println("Tear down")
}