diff options
author | Seb Bacon <seb.bacon@gmail.com> | 2011-10-10 13:17:06 +0100 |
---|---|---|
committer | Seb Bacon <seb.bacon@gmail.com> | 2011-10-10 13:17:06 +0100 |
commit | 247a24cde3954b7f7b3cbb2e3b624669b6e6e61d (patch) | |
tree | 96e16b35ec7223b1c2eaea0ea1ee3afc5aa583b4 /spec/controllers/request_controller_spec.rb | |
parent | efab570be9d10f1f75096023a3963f83ad4c6c1f (diff) |
Extra tests to sanity check UTF conversion (see issue #128 for background)
Diffstat (limited to 'spec/controllers/request_controller_spec.rb')
-rw-r--r-- | spec/controllers/request_controller_spec.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/controllers/request_controller_spec.rb b/spec/controllers/request_controller_spec.rb index aa3027c00..bff3abce5 100644 --- a/spec/controllers/request_controller_spec.rb +++ b/spec/controllers/request_controller_spec.rb @@ -137,6 +137,13 @@ describe RequestController, "when showing one request" do response.should have_text(/First hello/) end + it "should convert message body to UTF8" do + ir = info_requests(:fancy_dog_request) + receive_incoming_mail('iso8859_2_raw_email.email', ir.incoming_email) + get :show, :url_title => 'why_do_you_have_such_a_fancy_dog' + response.should have_text(/tënde/u) + end + it "should generate valid HTML verson of plain text attachments " do ir = info_requests(:fancy_dog_request) receive_incoming_mail('incoming-request-two-same-name.email', ir.incoming_email) |