Created
March 23, 2012 08:02
-
-
Save kinopyo/2168152 to your computer and use it in GitHub Desktop.
Rails Test : Quick hack to get Rack to be quiet about "warning: regexp match /.../n against to UTF-8 string" until we upgrade to Rails 3.1 with Rack 1.3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RSpec.configure do |config| | |
# ... | |
end | |
# quick hack to get Rack to be quiet about "warning: regexp match /.../n against to UTF-8 string" until we upgrade to Rails 3.1 with Rack 1.3 | |
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