From af1f4677c685e8a2c4967ffa0350d314a6543db7 Mon Sep 17 00:00:00 2001 From: Horus3 Date: Thu, 5 Feb 2015 02:55:30 +0100 Subject: Init --- tests/apptest.go | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 tests/apptest.go (limited to 'tests') 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