Skip to content

assert_redirects does not work with absolute location #2

Description

@jpvanhal

assert_redirects always prepends the location with "http://localhost". This is fine for 95 percent of time, but sometimes I want to test if the response redirects to another domain. Thus, assert_redirects should only prepend the location with "http://localhost" if the location is not absolute.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions