about summary refs log tree commit diff
path: root/router_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'router_test.go')
-rw-r--r--router_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/router_test.go b/router_test.go
index 845833c..df67607 100644
--- a/router_test.go
+++ b/router_test.go
@@ -4,18 +4,18 @@ import (
 	"testing"
 )
 
-func testDispatcher (req *Request) (Response, error) {
+func testRouter (req *Request) (Response, error) {
 	resp := Response{}
 	return resp, nil
 }
 
 func testBasic(t *testing.T) {
-	d := BuildDispatcher()
-	err := d.AddRoute(&Route{Method:"GET", Path:"/", Code: testDispatcher})
+	d := BuildRouter()
+	err := d.AddRoute(&Route{Method:"GET", Path:"/", Code: testRouter})
 	if err != nil {
 		t.Fatal()
 	}
-	err = d.AddRoute(&Route{Method: "GET", Path:"/", Code: testDispatcher})
+	err = d.AddRoute(&Route{Method: "GET", Path:"/", Code: testRouter})
 	if err == nil {
 		t.Fatal()
 	}