rails--rails/activejob/test/cases
Ariel Valentin 658fd53741
fix: Ensure `ActiveJob::TestHelper` sets `scheduled_at` to a `Float`
I noticed a difference in behavior when inspecting `ActiveJob::Core#scheduled_at` in non-test environments vs when inspecting in while executing tests.

Prior to this change, `ActiveJob::TestHelper` would set `ActiveJob::Core#scheduled_at` to a `Time` object in tests,
however this attribute was set to a `Float` objects in non-test environments:

<d1aa6af5cc/activejob/lib/active_job/core.rb (L161)>

This change ensures parity in all runtime environments.
2022-10-17 19:22:24 +00:00
..
adapter_test.rb [Active Job] `rubocop -a --only Layout/EmptyLineAfterMagicComment` 2017-07-11 13:12:32 +09:00
argument_serialization_test.rb Add ActiveJob::Serializers::BigDecimalSerializer 2022-07-19 15:31:41 -04:00
callbacks_test.rb Removed deprecated behavior that was not halting `after_enqueue`/`after_perform` callbacks when a previous callback was halted with `throw :abort`. 2021-11-17 21:51:17 +00:00
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 Preserve `job.enqueued_at` timestamp precision 2022-07-12 18:13:16 -07:00
logging_test.rb Add job_id and exception message to ActiveJob retry/discard logging 2022-02-08 10:06:21 -05: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 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 Allow jobs to rescue all exceptions 2021-01-23 08:35:51 -05: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 fix: Ensure `ActiveJob::TestHelper` sets `scheduled_at` to a `Float` 2022-10-17 19:22:24 +00:00
timezones_test.rb Reset Time.zone to avoid leaking into other tests 2020-11-15 01:02:22 +00:00
translation_test.rb [Active Job] `rubocop -a --only Layout/EmptyLineAfterMagicComment` 2017-07-11 13:12:32 +09:00