diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-10-09 06:06:29 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-10-09 06:06:29 +0300 |
commit | d1002a9e0dfd63273564b060e6ae62ccc0578200 (patch) | |
tree | 2494b73f91c5729918d42ce7917cbaf1c3c45820 /spec | |
parent | 869182cab0867d582e469f329a6f58d13f877683 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec')
-rw-r--r-- | spec/lib/banzai/filter/relative_link_filter_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/lib/banzai/filter/relative_link_filter_spec.rb b/spec/lib/banzai/filter/relative_link_filter_spec.rb index 8e55f12ddc5..f983265ce71 100644 --- a/spec/lib/banzai/filter/relative_link_filter_spec.rb +++ b/spec/lib/banzai/filter/relative_link_filter_spec.rb @@ -228,6 +228,12 @@ describe Banzai::Filter::RelativeLinkFilter do expect(doc.at_css('a')['href']).to eq 'http://example.com' end + it 'does not call gitaly' do + filter(link('http://example.com')) + + expect(described_class).not_to receive(:get_blob_types) + end + it 'supports Unicode filenames' do path = 'files/images/한글.png' escaped = Addressable::URI.escape(path) |