summaryrefslogtreecommitdiff
path: root/tests/apptest.go
diff options
context:
space:
mode:
authorHorus32015-02-05 02:55:30 +0100
committerHorus32015-02-05 02:55:30 +0100
commitaf1f4677c685e8a2c4967ffa0350d314a6543db7 (patch)
tree7b749014441c732b75789eec4b93dc885f4a1f8f /tests/apptest.go
downloadwebmon-af1f4677c685e8a2c4967ffa0350d314a6543db7.tar.gz
Init
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")
+}