summaryrefslogtreecommitdiff
path: root/tests/apptest.go
diff options
context:
space:
mode:
authorHorus_Arch2015-02-12 18:48:08 +0100
committerHorus_Arch2015-02-12 18:48:08 +0100
commit218d04ca12051c4330156fc1f3290f27bb24c155 (patch)
treeb35c25174b40c93f52d94180a4228f0ced39b8ac /tests/apptest.go
downloadstatuspage-218d04ca12051c4330156fc1f3290f27bb24c155.tar.gz
Initial commit. With basic database schema.
Diffstat (limited to 'tests/apptest.go')
-rw-r--r--tests/apptest.go21
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")
+}