aboutsummaryrefslogtreecommitdiffstats
path: root/activejob/CHANGELOG.md
diff options
context:
space:
mode:
authorbogdanvlviv <bogdanvlviv@gmail.com>2018-06-30 18:20:04 +0300
committerbogdanvlviv <bogdanvlviv@gmail.com>2018-06-30 18:30:55 +0300
commit22c7d5650cb22ac75b5ee06830a58fcc22bb7acc (patch)
tree5ddfc6a769f5a871bbb2d4a79c1c770871bcc2d3 /activejob/CHANGELOG.md
parentb3653aee947a5f8c3a298913e539493d17c1932b (diff)
downloadrails-22c7d5650cb22ac75b5ee06830a58fcc22bb7acc.tar.gz
rails-22c7d5650cb22ac75b5ee06830a58fcc22bb7acc.tar.bz2
rails-22c7d5650cb22ac75b5ee06830a58fcc22bb7acc.zip
Allow `queue` option to `assert_no_enqueued_jobs`
It can be asserted that no jobs are enqueued to a specific queue: ```ruby def test_no_logging assert_no_enqueued_jobs queue: 'default' do LoggingJob.set(queue: :some_queue).perform_later end end ```
Diffstat (limited to 'activejob/CHANGELOG.md')
-rw-r--r--activejob/CHANGELOG.md13
1 files changed, 13 insertions, 0 deletions
diff --git a/activejob/CHANGELOG.md b/activejob/CHANGELOG.md
index fea837585f..3ecbc2ff38 100644
--- a/activejob/CHANGELOG.md
+++ b/activejob/CHANGELOG.md
@@ -1,3 +1,16 @@
+* Allow `queue` option to `assert_no_enqueued_jobs`.
+
+ Example:
+ ```
+ def test_no_logging
+ assert_no_enqueued_jobs queue: 'default' do
+ LoggingJob.set(queue: :some_queue).perform_later
+ end
+ end
+ ```
+
+ *bogdanvlviv*
+
* Allow call `assert_enqueued_with` with no block.
Example: