diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2018-06-29 14:52:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-29 14:52:26 +0200 |
commit | 1f4202611cae45ca9047d9fec73a7b631e934fa7 (patch) | |
tree | cf1bdafc1d211f152bb498b9218fbbe83bdcd408 /actionmailer/CHANGELOG.md | |
parent | b906ee59c0d6436f2801e23093d89d59d7fa447d (diff) | |
parent | 4382fcbc22e6d7a30a7c7514ea531209ffc347dd (diff) | |
download | rails-1f4202611cae45ca9047d9fec73a7b631e934fa7.tar.gz rails-1f4202611cae45ca9047d9fec73a7b631e934fa7.tar.bz2 rails-1f4202611cae45ca9047d9fec73a7b631e934fa7.zip |
Merge pull request #33258 from bogdanvlviv/allow-callassert_enqueued_with-with-no-block
Allow call `assert_enqueued_with` and `assert_enqueued_email_with` with no block
Diffstat (limited to 'actionmailer/CHANGELOG.md')
-rw-r--r-- | actionmailer/CHANGELOG.md | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/actionmailer/CHANGELOG.md b/actionmailer/CHANGELOG.md index 88e8a36eaa..1468a89e96 100644 --- a/actionmailer/CHANGELOG.md +++ b/actionmailer/CHANGELOG.md @@ -1,3 +1,20 @@ +* Allow call `assert_enqueued_email_with` with no block. + + Example: + ``` + def test_email + ContactMailer.welcome.deliver_later + assert_enqueued_email_with ContactMailer, :welcome + end + + def test_email_with_arguments + ContactMailer.welcome("Hello", "Goodbye").deliver_later + assert_enqueued_email_with ContactMailer, :welcome, args: ["Hello", "Goodbye"] + end + ``` + + *bogdanvlviv* + * Ensure mail gem is eager autoloaded when eager load is true to prevent thread deadlocks. *Samuel Cochran* |