instance method
serialize_args_for_assertion
Ruby on Rails 5.1.7
Since v4.2.11.3 Last seen in v5.1.7 Private — implementation detail, not part of the public APIAvailable in: v4.2.11.3 v5.1.7
Signature
serialize_args_for_assertion(args)
No documentation comment.
Parameters
-
argsreq
Source
# 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
Defined in activejob/lib/active_job/test_helper.rb line 366
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveJob::TestHelper