From 94e978fa491d7528e48da33b4ee274cb3eec862a Mon Sep 17 00:00:00 2001 From: yuenmichelle1 Date: Wed, 22 May 2024 16:30:25 -0500 Subject: [PATCH] add note on formated enqueue time method --- spec/support/shared_examples_for_schedulable.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/support/shared_examples_for_schedulable.rb b/spec/support/shared_examples_for_schedulable.rb index 17c5dfd4..f4f151e9 100644 --- a/spec/support/shared_examples_for_schedulable.rb +++ b/spec/support/shared_examples_for_schedulable.rb @@ -3,6 +3,7 @@ it 'gets queued on enqueued_times' do enqueued_times.each do |enqueued_time| + # update to formatted_enqueue_time when updating sidekiq-cron to 1.9+ (sidekiq 7 support) job_enqueue_time = Time.at(job.formated_enqueue_time.to_f).utc expect(job_enqueue_time).to eq(enqueued_time) end