From 34b4761652162d231f06c5d09eae6aaff68e6c88 Mon Sep 17 00:00:00 2001 From: Jean-Francis Bastien Date: Fri, 14 Jun 2024 08:57:42 -0400 Subject: [PATCH] fix cop --- spec/rubocop/cop/sidekiq/date_time_argument_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/rubocop/cop/sidekiq/date_time_argument_spec.rb b/spec/rubocop/cop/sidekiq/date_time_argument_spec.rb index 22ab6d9..6c7acfc 100644 --- a/spec/rubocop/cop/sidekiq/date_time_argument_spec.rb +++ b/spec/rubocop/cop/sidekiq/date_time_argument_spec.rb @@ -12,7 +12,7 @@ RUBY end - it 'registers an offense' do + it 'registers an offense on Time.current' do expect_offense(<<~RUBY) MyWorker.perform_async(Time.current) ^^^^^^^^^^^^ Sidekiq/DateTimeArgument: Date/Time objects are not Sidekiq-serializable; convert to integers or strings instead.