1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activejob/test
Étienne Barrié f123e5e40a Fix perform_enqueued_jobs without a block with other helpers
assert_enqueued_with with a block ignores all the jobs enqueued before
the block for its assertions by counting the number of jobs and dropping
the n first elements from the Array, but since we're now mutating the
Array in perform_enqueued_jobs without a block, it's broken.

This uses another implementation which is correct when the array is
mutated, by getting a duplicated array of jobs, then removing them from
the original array.

Similarly assert_enqueued_jobs with a block was using counts only, now
keeps track of the specific jobs to count them at the end.
2020-04-13 13:13:38 -04:00
..
adapters Remove support for Qu gem. 2018-03-19 21:27:16 +01:00
cases Fix perform_enqueued_jobs without a block with other helpers 2020-04-13 13:13:38 -04:00
integration Add support for que name to Que adapter. 2020-03-04 13:50:13 +01:00
jobs Fix AJ TestAdapter#performed_jobs not properly counting job: 2020-03-09 19:46:11 -04:00
models [Active Job] rubocop -a --only Layout/EmptyLineAfterMagicComment 2017-07-11 13:12:32 +09:00
support Fix warning: method redefined 2020-03-13 18:19:14 +01:00
helper.rb Set AJ return_false_on_aborted_enqueue true in the test suite: 2019-12-28 16:56:54 +01:00