Add CHANGELOG entry for ActiveJob change

In #36864 we made a change to an ActiveJob test helper to add a new
parameter for testing jobs delayed into the future.

This commit adds a CHANGELOG entry for that change as well as fixing a
circular argument error.
This commit is contained in:
John Crepezzi 2019-08-07 17:09:23 +02:00
parent c2f197c775
commit c45c84db72
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.
*Vlado Cingel*

View File

@ -117,7 +117,7 @@ module ActiveJob
# HelloJob.perform_later('elfassy')
# 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?
original_count = enqueued_jobs_with(only: only, except: except, queue: queue)