
Can't request relative URLs with mechanize
Reported by gma | December 9th, 2008 @ 10:16 AM | in 0.5
When attempting to submit a form with a relative URL I received a "need absolute URL" RuntimeError.
I've patched it on github and sent a pull request. Here's the commit:
http://github.com/gma/webrat/com...
I decided that the most sensible way to fix it would be to patch the MechanizeSession, on the assumption that most back ends can cope with relative URLs. If that's not the case then this implementation has probably been inserted in the wrong place.
Comments and changes to this ticket
-
gaffo January 6th, 2009 @ 02:38 AM
- Tag changed from bug, mechanize to bug, mechanize, patch
- State changed from new to open
This fix needs to be verified.
-
Bryan Helmkamp February 8th, 2009 @ 11:53 PM
We're lacking in Mechanize test coverage. I think the next action on that front is to start on a spec/integration/mechanize suite that hits a local webapp.
Actually, maybe it could start the Sinatra app and run against that.
WDYT?
-Bryan
-
Bryan Helmkamp February 9th, 2009 @ 12:19 AM
- Milestone set to 0.5
-
OnmarBens February 23rd, 2022 @ 02:37 PM
Hey ! Do you have trouble using capital letters, or do you find it difficult to apply punctuation rules correctly? This is a very important point in the correct understanding of the sentence. In order not to miss such important details, use our online tool. Come in and see how easy and free it is!
https://www.capitalizationchecker.com/
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Ruby Acceptance Testing for Web applications.