summaryrefslogtreecommitdiff
path: root/spec/helpers
diff options
context:
space:
mode:
authorJose Ivan Vargas <jvargas@gitlab.com>2017-09-21 16:01:25 -0500
committerJose Ivan Vargas <jvargas@gitlab.com>2017-09-21 16:01:25 -0500
commit76de6327d8eab3123f06f612e8f623424599ad91 (patch)
tree97011a543bdb50d78be20d9e5776c2dec6e70b62 /spec/helpers
parentd4f3fca93bf31680b7cb23f6e68e809b864b27e8 (diff)
parent137c5822ecfb07bf453198f4025c4a30b100fc86 (diff)
downloadgitlab-ce-76de6327d8eab3123f06f612e8f623424599ad91.tar.gz
Merge branch 'master' into sh-headless-chrome-support
Diffstat (limited to 'spec/helpers')
-rw-r--r--spec/helpers/submodule_helper_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/helpers/submodule_helper_spec.rb b/spec/helpers/submodule_helper_spec.rb
index c4f4e0d21dc..5a2e4b34069 100644
--- a/spec/helpers/submodule_helper_spec.rb
+++ b/spec/helpers/submodule_helper_spec.rb
@@ -147,6 +147,12 @@ describe SubmoduleHelper do
expect(helper.submodule_links(submodule_item)).to eq([nil, nil])
end
+ it 'sanitizes invalid URL with extended ASCII' do
+ stub_url('é')
+
+ expect(helper.submodule_links(submodule_item)).to eq([nil, nil])
+ end
+
it 'returns original' do
stub_url('http://mygitserver.com/gitlab-org/gitlab-ce')
expect(submodule_links(submodule_item)).to eq([repo.submodule_url_for, nil])