SPEC: improve the code readability

SPEC: improve the code readability

3840ace97820acf98cb8f58ab1cab96f66e2def2

diff --git a/spec/services/inline_uploads_spec.rb b/spec/services/inline_uploads_spec.rb
index 32e1d18..dfc2ec4 100644
--- a/spec/services/inline_uploads_spec.rb
+++ b/spec/services/inline_uploads_spec.rb
@@ -230,15 +230,13 @@ RSpec.describe InlineUploads do
 
       it "should not correct non image URLs to the short url and paths" do
         SiteSetting.authorized_extensions = "mp4"
-        upload4 = Fabricate(:video_upload)
+        upload = Fabricate(:video_upload)
 
         md = <<~MD
-        #{GlobalSetting.cdn_url}#{upload4.url}
+        #{GlobalSetting.cdn_url}#{upload.url}
         MD
 
-        expect(InlineUploads.process(md)).to eq(<<~MD)
-        #{GlobalSetting.cdn_url}#{upload4.url}
-        MD
+        expect(InlineUploads.process(md)).to eq(md)
       end
 
       it "should correct img tags with uppercase upload extension" do

GitHub sha: 7890f106

1 Like