SPEC: add additional test with 'cdn_url'.

dc6b13e4d2
This commit is contained in:
Vinoth Kannan 2019-07-17 11:16:35 +05:30
parent dc6b13e4d2
commit 4bbf341ab1
1 changed files with 4 additions and 0 deletions

View File

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