1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #36881 from seejohnrun/address-activejob-pr-feedback

Add CHANGELOG entry for ActiveJob change
This commit is contained in:
Eileen M. Uchitelle 2019-08-07 14:25:27 -04:00 committed by GitHub
commit 9894f652ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
* Add `at` argument to the `perform_enqueued_jobs` test helper.
*John Crepezzi*, *Eileen Uchitelle*
* `assert_enqueued_with` and `assert_performed_with` can now test jobs with relative delay. * `assert_enqueued_with` and `assert_performed_with` can now test jobs with relative delay.
*Vlado Cingel* *Vlado Cingel*

View file

@ -117,7 +117,7 @@ module ActiveJob
# HelloJob.perform_later('elfassy') # HelloJob.perform_later('elfassy')
# end # end
# end # end
def assert_enqueued_jobs(number, only: nil, except: nil, queue: nil, at: at) def assert_enqueued_jobs(number, only: nil, except: nil, queue: nil)
if block_given? if block_given?
original_count = enqueued_jobs_with(only: only, except: except, queue: queue) original_count = enqueued_jobs_with(only: only, except: except, queue: queue)