wardencommunity/warden

Why does env['PATH_INFO'] get overwritten?

joshuajaco opened this issue · 0 comments

We are having issues in our tests where we use last_request.env['PATH_INFO'] to get the requested URL to validate the response against our JSON specification. This breaks when trying to test the unauthenticated case, because warden overwrites env['PATH_INFO'] to /unauthenticated. Why is that?
Relevant code is:

env["PATH_INFO"] = "/#{options[:action]}"