method

prepare_args_for_assertion

Importance_0
v7.1.3.4 - 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 709
      def prepare_args_for_assertion(args)
        args.dup.tap do |arguments|
          if arguments[:queue].is_a?(Symbol)
            arguments[:queue] = arguments[:queue].to_s
          end

          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.