1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionmailer/test
Justin S. Leitgeb 4f28c4fc9a Add ability to define callbacks in ActionMailer using AbstractController::Callbacks.
Prior to this commit, there isn't a good way of adding things like
default inline attachments to an email.  This Stack Overflow thread
shows people using hooks like the 'default' method in ActionMailer::Base
to call a Proc for message configuration:

http://stackoverflow.com/questions/5113121/rails-use-same-attachment-for-all-emails-using-layout

This has the unintended side effect of setting a message header, so it's not a good solution.

This pull request adds support for message modifications by including AbstractController:Callbacks
in ActionMailer::Base. It includes tests and documentation for the functionality
provided by including this module.
2012-03-11 14:05:31 -05:00
..
fixtures Added a testcase for bug [#5329] 2011-01-19 23:24:57 +01:00
mailers Get rid of update_details in favor of passing details to find_template. 2011-09-22 15:03:05 +02:00
abstract_unit.rb require minitest rather than test/unit 2012-01-06 15:50:47 -08:00
asset_host_test.rb test cases should inherit from AS::TestCase 2012-01-05 17:05:43 -08:00
base_test.rb Add ability to define callbacks in ActionMailer using AbstractController::Callbacks. 2012-03-11 14:05:31 -05:00
delivery_methods_test.rb Deletes trailing whitespaces (over text files only find * -type f -exec sed 's/[ \t]*$//' -i {} \;) 2010-08-14 04:12:33 -03:00
i18n_with_controller_test.rb Solve SystemStackError when changing locale inside ActionMailer [#5329 state:resolved] 2011-01-19 23:42:10 +01:00
log_subscriber_test.rb fixed test_deliver_is_notified need base_mailer 2011-05-25 08:01:56 +05:30
mail_helper_test.rb Fix AM format_paragraph helper method if a first word is long 2012-02-15 12:09:00 +04:00
mail_layout_test.rb test cases should inherit from AS::TestCase 2012-01-05 17:05:43 -08:00
test_helper_test.rb Deprecate the old mailer API that was not deprecated yet. 2010-08-29 20:42:13 -03:00
test_test.rb normalize arg for ActionMailer::TestCase tests method 2011-10-03 14:27:41 +04:00
url_test.rb Fix action mailer tests after old mapper removal 2010-09-05 13:44:38 +02:00