jnicklas/capybara — pull request #1298 by alexpeachey (2014-04-24 19:26:32+00:00)
Title: Force url parameter in visit method with to_s

The `visit` method takes a `url` as a parameter and in checking for special cases it performs `url.to_s`. However if no special cases apply, it does not perform `to_s`.

As someone who would like to send an arbitrary object capable of producing a url from `to_s` I feel adding consistency to the treatment of the parameter is beneficial.