mirror of
https://github.com/kevin-DL/revel-cmd.git
synced 2026-01-23 15:31:26 +00:00
Done #52 skeleton moved successfully to cmd repo
This commit is contained in:
21
revel/skeleton/tests/apptest.go
Normal file
21
revel/skeleton/tests/apptest.go
Normal file
@@ -0,0 +1,21 @@
|
||||
package tests
|
||||
|
||||
import "github.com/revel/revel/testing"
|
||||
|
||||
type AppTest struct {
|
||||
testing.TestSuite
|
||||
}
|
||||
|
||||
func (t *AppTest) Before() {
|
||||
println("Set up")
|
||||
}
|
||||
|
||||
func (t *AppTest) TestThatIndexPageWorks() {
|
||||
t.Get("/")
|
||||
t.AssertOk()
|
||||
t.AssertContentType("text/html; charset=utf-8")
|
||||
}
|
||||
|
||||
func (t *AppTest) After() {
|
||||
println("Tear down")
|
||||
}
|
||||
Reference in New Issue
Block a user