method

flush_enqueued_jobs

Importance_0
v6.1.7.7 - Show latest stable - 0 notes - Class: TestHelper
flush_enqueued_jobs(only: nil, except: nil, queue: nil, at: nil) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activejob/lib/active_job/test_helper.rb, line 663
      def flush_enqueued_jobs(only: nil, except: nil, queue: nil, at: nil)
        enqueued_jobs_with(only: only, except: except, queue: queue, at: at) do |payload|
          queue_adapter.enqueued_jobs.delete(payload)
          queue_adapter.performed_jobs << payload
          instantiate_job(payload).perform_now
        end.count
      end
Register or log in to add new notes.