Skip to content

Instantly share code, notes, and snippets.

@estahn
Created July 8, 2011 09:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save estahn/1071471 to your computer and use it in GitHub Desktop.
Save estahn/1071471 to your computer and use it in GitHub Desktop.
"warning: regexp match /.../n against to UTF-8 string" when running Cucumber
# TODO: Can be removed after updating to rack 1.3.0
module Rack
module Utils
def escape(s)
CGI.escape(s.to_s)
end
def unescape(s)
CGI.unescape(s)
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment