jnicklas/capybara — pull request #1357 by shepmaster (2014-07-08 16:38:04+00:00)
Title: Always convert visit's URL to a String before manipulation

It is convenient to be able to pass in URI objects to `visit`, but
these need to be coerced to a string before actual usage. Most of
visit's code paths would convert the incoming url to a string
as-needed. However, the path used when `always_include_port` is
enabled did not, causing an error where `URI.parse` would try to parse
an existing URI object.

This change consolidates the coercion to string at the entrypoint of
the method.