andrew/24pullrequests — pull request #151 by olof (2012-12-05 18:33:40+00:00)
Title: Don't render HTML links in plain text mails

link_to always renders HTML links, even in text views.

I have been trying to implement a test that catches this as well, but I'm not able to actually run the tests because of something in my environment (I've tried for hours) :-(, so maybe this is completely broken, but I tried:

--- a/spec/mailers/reminder_mailer_spec.rb
+++ b/spec/mailers/reminder_mailer_spec.rb
@@ -28,2 +28,6 @@ describe ReminderMailer do

+ it 'does not contain html links in text alternative' do
+ mail.text_part.should_not include('