diff options
| author | Horus_Arch | 2015-02-12 18:48:08 +0100 |
|---|---|---|
| committer | Horus_Arch | 2015-02-12 18:48:08 +0100 |
| commit | 218d04ca12051c4330156fc1f3290f27bb24c155 (patch) | |
| tree | b35c25174b40c93f52d94180a4228f0ced39b8ac /tests | |
| download | statuspage-218d04ca12051c4330156fc1f3290f27bb24c155.tar.gz | |
Initial commit. With basic database schema.
Diffstat (limited to 'tests')
| -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") +} |
