show tor hle in ui, test thumbnail enqueue
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user