method
round_time_arguments
v6.0.0 -
Show latest stable
- Class:
ActiveJob::TestHelper
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