aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/duration/iso8601_serializer.rb
diff options
context:
space:
mode:
authorbogdanvlviv <bogdanvlviv@gmail.com>2018-06-29 15:17:26 +0300
committerbogdanvlviv <bogdanvlviv@gmail.com>2018-06-29 15:37:02 +0300
commit4382fcbc22e6d7a30a7c7514ea531209ffc347dd (patch)
treecf1bdafc1d211f152bb498b9218fbbe83bdcd408 /activesupport/lib/active_support/duration/iso8601_serializer.rb
parentb906ee59c0d6436f2801e23093d89d59d7fa447d (diff)
downloadrails-4382fcbc22e6d7a30a7c7514ea531209ffc347dd.tar.gz
rails-4382fcbc22e6d7a30a7c7514ea531209ffc347dd.tar.bz2
rails-4382fcbc22e6d7a30a7c7514ea531209ffc347dd.zip
Allow call `assert_enqueued_with` and `assert_enqueued_email_with` with no block
Example of `assert_enqueued_with` with no block ```ruby def test_assert_enqueued_with MyJob.perform_later(1,2,3) assert_enqueued_with(job: MyJob, args: [1,2,3], queue: 'low') MyJob.set(wait_until: Date.tomorrow.noon).perform_later assert_enqueued_with(job: MyJob, at: Date.tomorrow.noon) end ``` Example of `assert_enqueued_email_with` with no block: ```ruby 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 ``` Related to #33243
Diffstat (limited to 'activesupport/lib/active_support/duration/iso8601_serializer.rb')
0 files changed, 0 insertions, 0 deletions