---
id: task-41
title: 'Write spec for Tasks::EnqueueDuePostFileJobsTask'
status: To Do
assignee: []
created_date: '2025-07-08'
labels: []
dependencies: []
---

## Description

Create comprehensive test coverage for the post file job enqueuing task to ensure proper job scheduling for post files that need processing.

## Acceptance Criteria

- [ ] Spec file exists at spec/lib/tasks/enqueue_due_post_file_jobs_task_spec.rb
- [ ] Tests verify start_enqueuing method enqueues correct jobs
- [ ] Tests verify queue_size method returns accurate count
- [ ] Tests verify progress_key returns correct key
- [ ] Tests verify correct filtering of post files by state and status
- [ ] Tests verify batch processing with find_each
- [ ] Tests verify proper job enqueueing with post_file parameter
- [ ] All tests pass with good coverage
