From 3b1da9be250560c9a2e4ca69c6fa89e8b36f01e1 Mon Sep 17 00:00:00 2001 From: Heinrich Lee Yu Date: Thu, 1 Aug 2019 02:53:33 +0800 Subject: Fix inline rendering of SVGs from current repo Changes generated URL to raw instead of blob --- spec/models/commit_spec.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'spec/models/commit_spec.rb') diff --git a/spec/models/commit_spec.rb b/spec/models/commit_spec.rb index e76186fb280..7b35c2ffd36 100644 --- a/spec/models/commit_spec.rb +++ b/spec/models/commit_spec.rb @@ -556,6 +556,7 @@ eos it 'returns the URI type at the given path' do expect(commit.uri_type('files/html')).to be(:tree) expect(commit.uri_type('files/images/logo-black.png')).to be(:raw) + expect(commit.uri_type('files/images/wm.svg')).to be(:raw) expect(project.commit('video').uri_type('files/videos/intro.mp4')).to be(:raw) expect(commit.uri_type('files/js/application.js')).to be(:blob) end -- cgit v1.2.1