chaijs/chai-http — pull request #24 by hurrymaplelad (2014-12-10 07:37:45+00:00)
Title: Fix #10: Inspect res.redirects for redirect assertions

With these changes, `redirect` and `redirectTo` assertions should work as expected when superagent follows redirects by inspecting `res.redirects`. They still work when the agent doesn't follow redirects (`.redirects(0)`) by inspecting a combination of the status code and location header.