From fa35ce9caa8a7ef896f15bad6c22abf0ede4060f Mon Sep 17 00:00:00 2001 From: David Taylor Date: Mon, 4 Dec 2023 15:45:11 +0000 Subject: [PATCH] DEV: remove duplicate spec (#24691) --- spec/lib/cooked_post_processor_spec.rb | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/spec/lib/cooked_post_processor_spec.rb b/spec/lib/cooked_post_processor_spec.rb index 08d8dcee06c..556e9ace6ee 100644 --- a/spec/lib/cooked_post_processor_spec.rb +++ b/spec/lib/cooked_post_processor_spec.rb @@ -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