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

This commit is contained in:
Vinoth Kannan 2018-12-18 03:05:43 +05:30
parent ece44a44f8
commit efcea148eb
1 changed files with 1 additions and 1 deletions

View File

@ -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