bmabey/email-spec — pull request #84 by woahdae (2011-12-12 20:39:11+00:00)
Title: Fix email viewer for complex content types

In Rails 3.1, and maybe others, it includes the charset in the content
type, ex. "text/html; charset=UTF-8".

Previous to this commit, email-spec was checking via == 'text/html';
this changes it to check if 'text/html' is included in the content type.

Also, If a spec is wanted for this, I'll need to know which version of ruby the project was intended to run against, as I couldn't run rake due to ffi 0.6.3 not compiling on ruby 1.9.3, and removing the Gemfile.lock resulted in a version of cucumber that wasn't compatible with the project. Simplest solution would be to switch to the same ruby you use.