From a6a018253e453c1b3635c66be11cba74cb084bac Mon Sep 17 00:00:00 2001 From: Josh Kalderimis Date: Sun, 28 Mar 2010 19:48:03 +0200 Subject: [PATCH] minor change to content type checking to make it more flexible when utf8 is returned MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: José Valim --- test/mailers/confirmation_instructions_test.rb | 2 +- test/mailers/reset_password_instructions_test.rb | 2 +- test/mailers/unlock_instructions_test.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/mailers/confirmation_instructions_test.rb b/test/mailers/confirmation_instructions_test.rb index 86008221..6e72adb1 100644 --- a/test/mailers/confirmation_instructions_test.rb +++ b/test/mailers/confirmation_instructions_test.rb @@ -23,7 +23,7 @@ class ConfirmationInstructionsTest < ActionMailer::TestCase end test 'content type should be set to html' do - assert_equal 'text/html', mail.content_type + assert mail.content_type.include?('text/html') end test 'send confirmation instructions to the user email' do diff --git a/test/mailers/reset_password_instructions_test.rb b/test/mailers/reset_password_instructions_test.rb index 5cd92c5e..f5e80890 100644 --- a/test/mailers/reset_password_instructions_test.rb +++ b/test/mailers/reset_password_instructions_test.rb @@ -27,7 +27,7 @@ class ResetPasswordInstructionsTest < ActionMailer::TestCase end test 'content type should be set to html' do - assert_equal 'text/html', mail.content_type + assert mail.content_type.include?('text/html') end test 'send confirmation instructions to the user email' do diff --git a/test/mailers/unlock_instructions_test.rb b/test/mailers/unlock_instructions_test.rb index 013c0ec3..89071c39 100644 --- a/test/mailers/unlock_instructions_test.rb +++ b/test/mailers/unlock_instructions_test.rb @@ -27,7 +27,7 @@ class UnlockInstructionsTest < ActionMailer::TestCase end test 'content type should be set to html' do - assert_equal 'text/html', mail.content_type + assert mail.content_type.include?('text/html') end test 'send unlock instructions to the user email' do