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:
commit
9894f652ad
2 changed files with 5 additions and 1 deletions
|
@ -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*
|
||||||
|
|
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue