Skip to content

Commit

Permalink
adapt to new api
Browse files Browse the repository at this point in the history
  • Loading branch information
StarlightIbuki committed Jul 14, 2022
1 parent 0c4f04a commit 8b5e1a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/01-unit/08-router_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2804,7 +2804,7 @@ for _, flavor in ipairs({ "traditional", "traditional_compatible" }) do
local _ngx = mock_ngx("GET", "/users/%6aohn%20doe/profile", { host = "domain.org" })

router._set_ngx(_ngx)
local match_t = router.exec()
local match_t = router:exec()
assert.equal("john doe", match_t.matches.uri_captures[1])
assert.equal("john doe", match_t.matches.uri_captures.fullname)
assert.equal("", match_t.matches.uri_captures[2])
Expand All @@ -2816,7 +2816,7 @@ for _, flavor in ipairs({ "traditional", "traditional_compatible" }) do
assert.equal(2, #match_t.matches.uri_captures)

-- again, this time from the LRU cache
local match_t = router.exec()
local match_t = router:exec()
assert.equal("john doe", match_t.matches.uri_captures[1])
assert.equal("john doe", match_t.matches.uri_captures.fullname)
assert.equal("", match_t.matches.uri_captures[2])
Expand Down

0 comments on commit 8b5e1a9

Please sign in to comment.