method

serialize_args_for_assertion

rails latest stable - Class: ActiveJob::TestHelper

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v5.1.7) is shown here.

serialize_args_for_assertion(args)
private

No documentation available.

# File activejob/lib/active_job/test_helper.rb, line 366
      def serialize_args_for_assertion(args)
        args.dup.tap do |serialized_args|
          serialized_args[:args] = ActiveJob::Arguments.serialize(serialized_args[:args]) if serialized_args[:args]
          serialized_args[:at]   = serialized_args[:at].to_f if serialized_args[:at]
        end
      end