rails/activejob/test/cases
Kasper Timm Hansen d258bfe8ac
Consolidate and give context to after callback deprecation
The existing message only mentioned one type of before/after callback,
but the config was named generally. That mismatch is confusing and users
wouldn't necessarily know what the total effect of the config would be.

So instead of handwriting the deprecation warning in the specific instances,
consolidate it in one place and give the appropriate context. That context
is the above, but also that users shouldn't update their app config,
they should uncomment the line in the new defaults file, which now also
has more context.

I'm not totally convinced that we can't move this to when
`after_enqueue`/`after_perform` is called in the job class. Doesn't
seem worth it to blare this after every job enqueue/perform, when we
the score at boot time.

cc @Edouard-chin
2019-12-15 03:20:07 +01:00
..
adapter_test.rb [Active Job] rubocop -a --only Layout/EmptyLineAfterMagicComment 2017-07-11 13:12:32 +09:00
argument_serialization_test.rb Serialize classes and modules with ActiveJob 2019-09-09 16:45:12 -04:00
callbacks_test.rb Consolidate and give context to after callback deprecation 2019-12-15 03:20:07 +01:00
exceptions_test.rb Strip default_ prefix from retry_jitter config to match conventions 2019-12-13 01:42:58 +01:00
job_serialization_test.rb Adding enque time tracking and logging 2019-02-13 19:20:41 -05:00
logging_test.rb Fix ActiveJob logging when callback chain is halted: 2019-12-09 16:17:55 +01:00
queue_adapter_test.rb Fix queue adapter class delegation to point to self.class 2019-09-23 21:59:59 -03:00
queue_naming_test.rb Stop queue_name_prefix from being global 2019-09-13 18:30:19 -03:00
queue_priority_test.rb [Active Job] rubocop -a --only Layout/EmptyLineAfterMagicComment 2017-07-11 13:12:32 +09:00
queuing_test.rb Enable Style/RedundantBegin cop to avoid newly adding redundant begin block 2018-12-21 06:12:42 +09:00
rescue_test.rb [Active Job] rubocop -a --only Layout/EmptyLineAfterMagicComment 2017-07-11 13:12:32 +09:00
serializers_test.rb Enable Layout/EmptyLinesAroundAccessModifier cop 2019-06-13 12:00:45 +09:00
test_case_test.rb [Active Job] rubocop -a --only Layout/EmptyLineAfterMagicComment 2017-07-11 13:12:32 +09:00
test_helper_test.rb Log active_job potential matches when asserting 2019-08-12 15:16:12 -05:00
timezones_test.rb Add support for timezones to Active Job 2018-02-22 14:14:42 +00:00
translation_test.rb [Active Job] rubocop -a --only Layout/EmptyLineAfterMagicComment 2017-07-11 13:12:32 +09:00