diff options
author | Matt Jankowski <matt@jankowski.online> | 2024-05-20 05:37:36 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-20 09:37:36 +0000 |
commit | def6b686ff3ea8e4e77075a812bd463a3bf325c3 (patch) | |
tree | a477b287412cc3df0d3f573a74477a1653bdc290 /spec | |
parent | 70608f824e4bdd197d179c70efc82effcefc0c6b (diff) |
Fix `Rails/WhereRange` cop (#30343)
Diffstat (limited to 'spec')
-rw-r--r-- | spec/workers/scheduler/accounts_statuses_cleanup_scheduler_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/workers/scheduler/accounts_statuses_cleanup_scheduler_spec.rb b/spec/workers/scheduler/accounts_statuses_cleanup_scheduler_spec.rb index 4d9185093a2..08ebf82785f 100644 --- a/spec/workers/scheduler/accounts_statuses_cleanup_scheduler_spec.rb +++ b/spec/workers/scheduler/accounts_statuses_cleanup_scheduler_spec.rb @@ -163,7 +163,7 @@ describe Scheduler::AccountsStatusesCleanupScheduler do def cleanable_statuses_count Status .where(account_id: [account_alice, account_chris, account_erin]) # Accounts with enabled policies - .where('created_at < ?', 2.weeks.ago) # Policy defaults is 2.weeks + .where(created_at: ...2.weeks.ago) # Policy defaults is 2.weeks .count end end |