Ever since updating my environment to Rails 3.0.0 / RSpec 2.0.0.beta.20 / Cucumber 0.8.5 / Capybara 0.3.9 / Autotest 4.3.2, I’ve been getting the following error when Cucumber runs my features:
GEM_PATH/rack-1.2.1/lib/rack/utils.rb:16: warning: regexp match /.../n against to UTF-8 string
It seems that Rack is having a problem whenever UTF-8 strings are sent in the
params. Thankfully, these guys found a solution.
For a more verbose description, check out that page. Here’s the quick and dirty:
escape_utils gem by including this in your
bundle install to install the gem. Now, create a new file:
RAILS_ROOT/config/initializers/escape_utils.rb with the following content:
module Rack module Utils def escape(s) EscapeUtils.escape_url(s) end end end
And that should do it!