thoughtbot/capybara-webkit — Issue #214: capybara with webkit escapes URL differently from how rack-test does it
Author: skoder
Created: 2011-11-19 13:46:36+00:00
State: open

For example

rack-test

Started GET "/users/new?token=BAgiDGYwMGJhNDE%3D--a614fd1cf004cec49e6cd81fb494dfa6b219b3eb" for 127.0.0.1 at Fri Nov 18 10:35:27 +0400 2011
Parameters: {"token"=>"BAgiDGYwMGJhNDE=--a614fd1cf004cec49e6cd81fb494dfa6b219b3eb"}

webkit

Started GET "/users/new?token=BAgiDGYwMGJhNDE%253D--a614fd1cf004cec49e6cd81fb494dfa6b219b3eb" for 127.0.0.1 at Fri Nov 18 10:36:03 +0400 2011
Parameters: {"token"=>"BAgiDGYwMGJhNDE%3D--a614fd1cf004cec49e6cd81fb494dfa6b219b3eb"}

As you can see the '=' symbol is escaped as ```%3D``` with rack-test and as ```%253D``` with webkit.
I have to do CGI.unescape(token) to get proper token from params.

Any helper would be appreciated. Thanks.