method

round_time_arguments

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 (v6.0.0) is shown here.

round_time_arguments(argument)
private

No documentation available.

# File activejob/lib/active_job/test_helper.rb, line 638
      def round_time_arguments(argument)
        case argument
        when Time, ActiveSupport::TimeWithZone, DateTime
          argument.change(usec: 0)
        when Hash
          argument.transform_values { |value| round_time_arguments(value) }
        when Array
          argument.map { |element| round_time_arguments(element) }
        else
          argument
        end
      end