Add perform_enqueued_jobs

It will set proper queue_adapter state required by assert_performed_jobs assertions.

Also the block version of assert_performed_jobs will make sure this
state is respected.

Fixes #17684
Merge pull request #17687 from fabiolnm/master

Refs #17684: Enhances rdoc for ActiveJob assert_performed assertions