24 lines
363 B
Go
24 lines
363 B
Go
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")
|
|
}
|