show tor hle in ui, test thumbnail enqueue

This commit is contained in:
Dylan Knutson
2025-07-25 00:41:28 +00:00
parent dffdef51cd
commit 5b67f2ad9a
5 changed files with 40 additions and 4 deletions

View File

@@ -173,6 +173,14 @@ RSpec.describe Job::FaPostFurArchiverPostFileJob do
post.reload
expect(post.files.length).to eq(3)
end
it "enqueues the thumbnail job" do
perform_now({ post: post })
job_args = SpecUtil.enqueued_job_args(Domain::PostFileThumbnailJob)
expect(job_args).to eq(
[{ post_file: post.files.last, caused_by_entry: @log_entries[0] }],
)
end
end
end
end