rails--rails/actionmailer/test
Jeremy Daer 95e06e6682 Disallow calling `#deliver_later` after local message modifications.
They would be lost when the delivery job is enqueued, otherwise.
Prevents a common, hard-to-find bug like:

```ruby
message = Notifier.welcome(user, foo)
message.message_id = my_generated_message_id
message.deliver_later
```

The message_id is silently lost here! *Only the mailer arguments are
passed to the delivery job.*

This raises an exception now.

Make modifications to the message within the mailer method or use a
custom Active Job to manage delivery instead of using #deliver_later.
2016-04-07 13:36:50 -07:00
..
fixtures Porting ActionController::Caching to ActionMailer::Caching 2016-02-23 21:04:16 -03:00
mailers Porting ActionController::Caching to ActionMailer::Caching 2016-02-23 21:04:16 -03:00
abstract_unit.rb Remove load_paths file 2016-02-27 13:03:57 -05:00
assert_select_email_test.rb Deprecated .deliver / .deliver! to .deliver_now / .deliver_now! 2014-08-20 17:48:34 +03:00
asset_host_test.rb fix tests on action_mailer 2014-10-07 17:40:59 -05:00
base_test.rb Revert "Merge pull request #18446 from cloud8421/actionmailer-unregister-interceptor" 2015-11-23 15:01:24 -07:00
caching_test.rb Move ActionMailer::Caching's content into ActionMailer::Base instead of including it 2016-02-23 21:06:41 -03:00
delivery_methods_test.rb Sendmail default arguments match Mail::SendMail 2016-04-05 14:11:37 -05:00
i18n_with_controller_test.rb Suppress warnings 2016-03-31 01:07:43 +09:00
log_subscriber_test.rb Deprecated .deliver / .deliver! to .deliver_now / .deliver_now! 2014-08-20 17:48:34 +03:00
mail_helper_test.rb Make ActionMailer #cache helper a no-op, not an exception 2015-04-28 13:56:42 -06:00
mail_layout_test.rb Remove unnecessary setup and teardown. 2014-05-13 15:03:53 +08:00
message_delivery_test.rb Disallow calling `#deliver_later` after local message modifications. 2016-04-07 13:36:50 -07:00
test_case_test.rb [ActionMailer] Rename test/test_test to test/test_case_test 2014-08-30 14:38:33 +00:00
test_helper_test.rb `assert_emails` in block form use the given number as expected value 2015-05-09 18:59:59 +09:00
url_test.rb Suppress warnings 2016-03-31 01:07:43 +09:00