Skip to content

A platform for community discussion. Free, open, simple.

DEV: remove duplicate spec (#24691)

David Taylorfa35ce9caa8a
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