method

prepare_args_for_assertion

Importance_0
v6.1.7.7 - Show latest stable - 0 notes - Class: TestHelper
prepare_args_for_assertion(args) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activejob/lib/active_job/test_helper.rb, line 671
      def prepare_args_for_assertion(args)
        args.dup.tap do |arguments|
          if arguments[:at].acts_like?(:time)
            at_range = arguments[:at] - 1..arguments[:at] + 1
            arguments[:at] = ->(at) { at_range.cover?(at) }
          end
        end
      end
Register or log in to add new notes.