mikel/mail — pull request #517 by svanderbleek (2013-02-19 22:50:04+00:00)
Title: Save settings passed to TestMailer#new

I came across this when using ActionMailer and testing that my `delivery_method` settings were being set correctly, specifically around https://github.com/rails/rails/blob/master/actionmailer/lib/action_mailer/delivery_methods.rb#L66 where `delivery_method` is `:test`. This hits https://github.com/mikel/mail/blob/master/lib/mail/message.rb#L254 which instantiates a new TestMailer with the passed settings. It seems weird to me that TestMailer provides `attr_accessor :settings` but ignores the `values` passed to `intialize`, especially since this lead to one method of changing settings, using Interceptors, which are set through the accessor, working but not the other, using Class attributes, which are set through an initialize.