SPEC: correctly skips invalid upload urls

approved
#1

SPEC: correctly skips invalid upload urls

788f995f30d09d6d99de6f213120ee7957248dd5

diff --git a/spec/models/post_spec.rb b/spec/models/post_spec.rb
index 223400f..acc1ea3 100644
--- a/spec/models/post_spec.rb
+++ b/spec/models/post_spec.rb
@@ -1347,7 +1347,7 @@ describe Post do
       urls = []
       upload1 = Fabricate(:upload)
       upload2 = Fabricate(:upload)
-      post = Fabricate(:post, raw: "A post with image and link upload.\n\n![](#{upload1.short_url})\n\n<a href='#{upload2.url}'>Link to upload</a>")
+      post = Fabricate(:post, raw: "A post with image and link upload.\n\n![](#{upload1.short_url})\n\n<a href='#{upload2.url}'>Link to upload</a>\n![](http://example.com/external.png)")
       post.each_upload_url { |src, _, _| urls << src }
       expect(urls).to eq([upload1.url, upload2.url])
     end

GitHub sha: 1881e895

FIX: skip external urls which has upload url in query string.
Approved #2