class RSpec::Rails::Matchers::ActiveJob::Base

def serialized_attributes

def serialized_attributes
  {}.tap do |attributes|
    attributes[:args]  = ::ActiveJob::Arguments.serialize(@args) if @args.any?
    attributes[:at]    = @at.to_f if @at
    attributes[:queue] = @queue if @queue
    attributes[:job]   = @job if @job
  end
end