Browse Source

Also fix URLParams in tests

Carl Jackson 12 years ago
parent
commit
5d911931d5
3 changed files with 3 additions and 3 deletions
  1. +1
    -1
      web/middleware_test.go
  2. +1
    -1
      web/mux_test.go
  3. +1
    -1
      web/pattern_test.go

+ 1
- 1
web/middleware_test.go View File

@ -214,7 +214,7 @@ func TestContext(t *testing.T) {
}
st.Use(func(c *C, h http.Handler) http.Handler {
fn := func(w http.ResponseWriter, r *http.Request) {
if c.Env != nil || c.UrlParams != nil {
if c.Env != nil || c.URLParams != nil {
t.Error("Expected a clean context")
}
c.Env = make(map[string]interface{})


+ 1
- 1
web/mux_test.go View File

@ -25,7 +25,7 @@ func TestIfItWorks(t *testing.T) {
greeting = g.(string)
}
}
ch <- greeting + c.UrlParams["name"]
ch <- greeting + c.URLParams["name"]
})
r, _ := http.NewRequest("GET", "/hello/carl", nil)


+ 1
- 1
web/pattern_test.go View File

@ -17,7 +17,7 @@ func pt(url string, match bool, params map[string]string) patternTest {
r: req,
match: match,
c: &C{},
cout: &C{UrlParams: params},
cout: &C{URLParams: params},
}
}


Loading…
Cancel
Save