rails/actionmailer/test
Jonathan Hefner 19df946585 Deprecate params via :args for assert_enqueued_email_with
In #45752, a `:params` kwarg was added to `assert_enqueued_email_with`
so that mailer params and args could be specified simultaneously.
However, for backward compatibility, the old behavior of treating an
`:args` Hash as params was preserved.  The result is that if both
`:params` and `:args` are specified and `:args` is a Hash, `:params` is
ignored.

This commit deprecates specifying params via `:args` (i.e. passing a
Hash to `:args`).

After the deprecated behavior is removed, it will be possible to pass
a Hash to `:args`, and the Hash will be treated as named args instead.
2023-05-11 14:11:17 -05:00
..
fixtures Merge pull request #26445 from dracos/multiparty 2020-08-19 10:10:36 -07:00
mailers Add *_deliver callbacks for Action Mailer 2023-03-29 17:12:19 -07:00
abstract_unit.rb Add ActionMailer.deprecator 2022-10-29 16:01:02 -05:00
assert_select_email_test.rb Change the empty block style to have space inside of the block 2018-09-25 13:19:35 -04:00
asset_host_test.rb Deprecate starts_with? and ends_with? for String core extensions 2020-05-05 15:51:24 +09:00
base_test.rb Fix some typos. 2022-02-21 17:58:23 +01:00
caching_test.rb Add OutputBuffer#raw and #capture to reduce the need to swap the buffer 2022-08-03 12:56:34 +02:00
callbacks_test.rb Remove noise from actionmailer callbacks test 2023-04-26 21:38:54 +05:30
delivery_methods_test.rb Change sendmail default options to match Mail 2.8.x arguments format. 2022-12-06 20:41:09 -05:00
i18n_with_controller_test.rb Add ActionDispatch.deprecator 2022-10-27 17:11:02 -05:00
log_subscriber_test.rb Remove deprecated ActionMailer::Base.receive in favor of Action Mailbox 2020-05-05 00:06:22 -04:00
mail_helper_test.rb Enable Layout/EmptyLinesAroundAccessModifier cop 2019-06-13 12:00:45 +09:00
mail_layout_test.rb Use frozen string literal in actionmailer/ 2017-07-23 18:17:19 +03:00
message_delivery_test.rb Allow mailer classes to customize the deliver_later queue name 2023-02-15 13:31:12 -05:00
parameterized_test.rb Allow mailer classes to customize the deliver_later queue name 2023-02-15 13:31:12 -05:00
test_case_test.rb Replace ableist language 2021-10-05 22:27:09 -04:00
test_helper_test.rb Deprecate params via :args for assert_enqueued_email_with 2023-05-11 14:11:17 -05:00
url_test.rb Remove method encode from url_test in Actionmailer: 2020-01-08 11:52:13 -03:00