"warning: regexp match /.../n against to UTF-8 string" when running Cucumber
You probably have updated your environment lately and now getting the error "warning: regexp match /.../n against to UTF-8 string" when running Cucumber.
This is an encoding problem in the rack gem. This problem has already been fixed in version 1.3.0 but some of us are not able to update due dependencies issues e.g. rails. A simple monkey-patch based on pull request can solve the issue.
Create the file "config/initializers/rack_hotfix.rb" with the following content:
