diff options
author | Rémy Coutable <remy@rymai.me> | 2016-07-25 17:08:36 +0200 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-07-26 10:22:17 +0200 |
commit | 939436480c8c6bd524d3c4c78674e81f90861d06 (patch) | |
tree | 8b9dd288e6b0ddf31247b535833c23f74f3da2ea /spec/models/commit_spec.rb | |
parent | 4bf20d677b2ec3bffae9fe2ca1abbbc0429b6b28 (diff) | |
download | gitlab-ce-939436480c8c6bd524d3c4c78674e81f90861d06.tar.gz |
Ensure relative paths for video are rewritten as we do for images20189-markdown-video-doesn-t-work-when-the-referenced-video-file-is-in-same-repo
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'spec/models/commit_spec.rb')
-rw-r--r-- | spec/models/commit_spec.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/models/commit_spec.rb b/spec/models/commit_spec.rb index ba02d5fe977..ec1544bf815 100644 --- a/spec/models/commit_spec.rb +++ b/spec/models/commit_spec.rb @@ -212,6 +212,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(project.commit('video').uri_type('files/videos/intro.mp4')).to be(:raw) expect(commit.uri_type('files/js/application.js')).to be(:blob) end |