SPEC: add additional test with 'cdn_url'.

SPEC: add additional test with ‘cdn_url’.

dc6b13e4d205fd148d10d56d1f38f0b12d55825d

diff --git a/spec/services/inline_uploads_spec.rb b/spec/services/inline_uploads_spec.rb
index 79f6e78..93943c0 100644
--- a/spec/services/inline_uploads_spec.rb
+++ b/spec/services/inline_uploads_spec.rb
@@ -237,12 +237,16 @@ RSpec.describe InlineUploads do
         #{Discourse.base_url}#{upload.url}
 
         #{Discourse.base_url}#{upload.url} #{Discourse.base_url}#{upload2.url}
+
+        #{GlobalSetting.cdn_url}#{upload2.url}
         MD
 
         expect(InlineUploads.process(md)).to eq(<<~MD)
         #{Discourse.base_url}#{upload.short_path}
 
         #{Discourse.base_url}#{upload.short_path} #{Discourse.base_url}#{upload2.short_path}
+
+        #{Discourse.base_url}#{upload2.short_path}
         MD
       end

GitHub sha: 4bbf341a

2 Likes