DEV: remove duplicate spec (#24691)

This commit is contained in:
David Taylor 2023-12-04 15:45:11 +00:00 committed by GitHub
parent 037622fc7f
commit fa35ce9caa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 16 deletions

View File

@ -791,22 +791,6 @@ RSpec.describe CookedPostProcessor do
expect(post.image_upload_id).not_to be_present
end
it "won't remove the original image if another post doesn't have an image" do
topic = post.topic
cpp.post_process
topic.reload
expect(topic.image_upload_id).to be_present
expect(post.image_upload_id).to be_present
post = Fabricate(:post, topic: topic, raw: "this post doesn't have an image")
CookedPostProcessor.new(post).post_process
topic.reload
expect(post.topic.image_upload_id).to be_present
expect(post.image_upload_id).to be_blank
end
it "generates thumbnails correctly" do
# image size in cooked is 1500*2000
topic = post.topic