Skip to content

Why does env['PATH_INFO'] get overwritten? #185

@joshuajaco

Description

@joshuajaco

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]}"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions