rails--rails/activejob/test/cases
Veerpal Brar 0f259e702d Raise error when serializing an anonymous class.
The ModuleSerializer does not support serializing anonymous classes
because when we try to deserialize the anonymous class, it wouldn't
know which class to use (since class name is nil).

For this reason, ModuleSerialzier now raises an error if the class
name is nil. Previously, ModuleSerializer would raise an `undefined
method `constantize' for nil:NilClass` error during deserialization.
It's not clear why the deserialization failed from the error.

In this commit, we raise an explicit error when trying to serialize
an anonymous class indicating this behaviour is not supported.
2021-10-13 11:55:23 -04:00
..
adapter_test.rb
argument_serialization_test.rb Raise error when serializing an anonymous class. 2021-10-13 11:55:23 -04:00
callbacks_test.rb
delayed_job_adapter_test.rb Avoid logging delayed job arguments if log_arguments set to false 2021-08-01 21:46:44 +01:00
exceptions_test.rb Tweak unreachable assertion tests in the block of `assert_raises` 2021-08-17 20:33:08 +09:00
job_serialization_test.rb
logging_test.rb Enable `Style/ExplicitBlockArgument` cop 2021-09-05 17:06:19 +02:00
queue_adapter_test.rb
queue_naming_test.rb Allow `ActiveJob::Base.set` to configure job when using `.perform_now` 2021-10-12 13:53:38 -07:00
queue_priority_test.rb Allow `ActiveJob::Base.set` to configure job when using `.perform_now` 2021-10-12 13:53:38 -07:00
queuing_test.rb Communicate enqueue failures to callers of perform_later 2021-02-05 16:32:43 -05:00
rescue_test.rb
serializers_test.rb
test_case_test.rb
test_helper_test.rb Restore AJ autoloading test 2021-08-22 01:23:14 +02:00
timezones_test.rb
translation_test.rb