From 218d04ca12051c4330156fc1f3290f27bb24c155 Mon Sep 17 00:00:00 2001 From: Horus_Arch Date: Thu, 12 Feb 2015 18:48:08 +0100 Subject: Initial commit. With basic database schema. --- tests/apptest.go | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 tests/apptest.go (limited to 'tests/apptest.go') 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") +} -- cgit v1.2.3