diff options
| author | Horus_Arch | 2015-02-14 23:11:57 +0100 |
|---|---|---|
| committer | Horus_Arch | 2015-02-14 23:11:57 +0100 |
| commit | 2f9fe2cfad83416647beed9c3c9085d686c43b09 (patch) | |
| tree | fce1e043672f94cf42f8197079ce6fb3017dade0 /tests/apptest.go | |
| download | freemail-2f9fe2cfad83416647beed9c3c9085d686c43b09.tar.gz | |
Initial commit.
Diffstat (limited to 'tests/apptest.go')
| -rw-r--r-- | tests/apptest.go | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/apptest.go b/tests/apptest.go new file mode 100644 index 0000000..7be1605 --- /dev/null +++ b/tests/apptest.go @@ -0,0 +1,21 @@ +package tests + +import "github.com/revel/revel" + +type AppTest struct { + revel.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") +} |
