From 8dffcd5ce04351a3696e8a4e82ffbee10e2b5b29 Mon Sep 17 00:00:00 2001
From: Will McCutchen <will@mccutch.org>
Date: Sun, 28 Aug 2016 00:52:17 -0700
Subject: [PATCH] index

---
 main_test.go | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/main_test.go b/main_test.go
index f5d0867..7aac6ed 100644
--- a/main_test.go
+++ b/main_test.go
@@ -8,6 +8,16 @@ import (
 	"testing"
 )
 
+func TestIndex(t *testing.T) {
+	r, _ := http.NewRequest("GET", "/", nil)
+	w := httptest.NewRecorder()
+	app().ServeHTTP(w, r)
+
+	if !strings.Contains(w.Body.String(), "go-httpbin") {
+		t.Fatalf("expected go-httpbin in index body")
+	}
+}
+
 func TestGet__Basic(t *testing.T) {
 	r, _ := http.NewRequest("GET", "/get", nil)
 	r.Host = "localhost"
-- 
GitLab