DEV: Use destroy! method to raise error if any (#0d3c1cde)

DEV: Use destroy! method to raise error if any (#0d3c1cde)
diff --git a/spec/components/cooked_post_processor_spec.rb b/spec/components/cooked_post_processor_spec.rb
index 5a783cf..8a84857 100644
--- a/spec/components/cooked_post_processor_spec.rb
+++ b/spec/components/cooked_post_processor_spec.rb
@@ -779,7 +779,7 @@ describe CookedPostProcessor do
 
       expect(cpp.doc.to_s).to eq("<p><img class=\"onebox\" src=\"#{upload.url}\" width=\"\" height=\"\"></p>")
 
-      upload.destroy
+      upload.destroy!
       cpp = CookedPostProcessor.new(post, invalidate_oneboxes: true)
       cpp.post_process_oneboxes

GitHub
sha: efcea148

This is a hash detection war is not a war I am winning … going to have to pull in the big guns here

2 Likes

FEATURE: make hash detection super robust