class RSpec::Rails::Matchers::ActiveJob::HavePerformedJob

@private

def initialize(job)

def initialize(job)
  super()
  @job = job
end

def matches?(proc)

def matches?(proc)
  raise ArgumentError, "have_performed_job only supports block expectations" unless Proc === proc
  original_performed_jobs_count = queue_adapter.performed_jobs.count
  proc.call
  in_block_jobs = queue_adapter.performed_jobs.drop(original_performed_jobs_count)
  check(in_block_jobs)
end