diff options
author | George Claghorn <george.claghorn@gmail.com> | 2015-01-07 23:33:01 -0500 |
---|---|---|
committer | George Claghorn <george.claghorn@gmail.com> | 2015-01-07 23:44:08 -0500 |
commit | b5e88317cc83436971d4b6d5d56629f9e43476d7 (patch) | |
tree | 34d681e047f3afe7de2483495aa476f7bfb7838d /activejob/CHANGELOG.md | |
parent | f6b21d48ef15d4f39a530653c2ce7d0cfb458b46 (diff) | |
download | rails-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.md | 13 |
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 |