diff options
| author | Horus3 | 2015-02-05 02:55:30 +0100 |
|---|---|---|
| committer | Horus3 | 2015-02-05 02:55:30 +0100 |
| commit | af1f4677c685e8a2c4967ffa0350d314a6543db7 (patch) | |
| tree | 7b749014441c732b75789eec4b93dc885f4a1f8f /tests/apptest.go | |
| download | webmon-af1f4677c685e8a2c4967ffa0350d314a6543db7.tar.gz | |
Init
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") +} |
