Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2019-10-09 06:06:29 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2019-10-09 06:06:29 +0300
commitd1002a9e0dfd63273564b060e6ae62ccc0578200 (patch)
tree2494b73f91c5729918d42ce7917cbaf1c3c45820 /spec
parent869182cab0867d582e469f329a6f58d13f877683 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec')
-rw-r--r--spec/lib/banzai/filter/relative_link_filter_spec.rb6
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)