aboutsummaryrefslogtreecommitdiffstats
path: root/activejob/CHANGELOG.md
diff options
context:
space:
mode:
authorGeorge Claghorn <george.claghorn@gmail.com>2015-01-07 23:33:01 -0500
committerGeorge Claghorn <george.claghorn@gmail.com>2015-01-07 23:44:08 -0500
commitb5e88317cc83436971d4b6d5d56629f9e43476d7 (patch)
tree34d681e047f3afe7de2483495aa476f7bfb7838d /activejob/CHANGELOG.md
parentf6b21d48ef15d4f39a530653c2ce7d0cfb458b46 (diff)
downloadrails-b5e88317cc83436971d4b6d5d56629f9e43476d7.tar.gz
rails-b5e88317cc83436971d4b6d5d56629f9e43476d7.tar.bz2
rails-b5e88317cc83436971d4b6d5d56629f9e43476d7.zip
Add :only option to assert_enqueued_jobs
With the option, assert_enqueued_jobs will check the number of times a specific kind of job is enqueued.
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 afdd42be33..bdeae29a50 100644
--- a/activejob/CHANGELOG.md
+++ b/activejob/CHANGELOG.md
@@ -1,3 +1,16 @@
+* Add :only option to assert_enqueued_jobs
+
+ With the option, assert_enqueued_jobs will check the number of times a specific kind of job is enqueued:
+
+ def test_logging_job
+ assert_enqueued_jobs 1, only: LoggingJob do
+ LoggingJob.perform_later
+ HelloJob.perform_later('jeremy')
+ end
+ end
+
+ *George Claghorn*
+
* `ActiveJob::Base.deserialize` delegates to the job class